get-dataurl

1.0.0 • Public • Published

get-dataurl

Build Status

Get base64 encoded data url from image.

Installation

npm install get-dataurl --save

Usage

import getDataUrl from 'get-dataurl';
getDataUrl('image.png', (dataUrl) => {
  console.log(dataUrl);
});

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Release History

  • 1.0.0 Initial release

Todo

  • Create useful tests

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    5

Package Sidebar

Install

npm i get-dataurl

Weekly Downloads

3

Version

1.0.0

License

ISC

Last publish

Collaborators

  • janjarfalk