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 zfm20image2base64To test
npm testUsage
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.