JSPM

zfm20image2base64

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q22799F
  • License MIT

Adafruit's biometric fingerprint image to base64

Package Exports

  • zfm20image2base64

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (zfm20image2base64) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Adafruit's biometric fingerprint image to base64

To install

npm i --save zfm20image2base64

To test

npm test

Usage

Require the library in your .js file:

const img2Base64 = require('zfm20image2base64');

Use the .convert method with the output of the image captured by the Adafruit's ZFM-20 sensor:

img2Base64.convert(fingerprint).then((image) => {
  console.log(`Base64 image: ${image}`);
}).catch((error) => {
  console.error(error);
});

As standalone PNG generator:

./zfm20ImageConverter [infile] [outfile]

License

Anyone can contribute and use it.

Issues

Report a bug in the issues.