get-dataurl

Get base64 encoded data url from image

Usage no npm install needed!

<script type="module">
  import getDataurl from 'https://cdn.skypack.dev/get-dataurl';
</script>

README

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