zfm20image2base64

1.0.2 • Public • Published

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.

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i zfm20image2base64

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    78.3 kB

    Total Files

    8

    Last publish

    Collaborators

    • djimenezjerez