viict / node-nitgen-enbsp

NITGEN ENBSP Module for NodeJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NITGEN ENBSP Module for Nodejs

Digital fingerprint reader module for NodeJS using a Nitgen device.

Currently tested on Windows with NodeJS 16 (x86), Python 3.10 (x86) and VS 2019 (x64/x86)

Based on the awesome work from Paulo Roberto

Usage: as dependency

yarn add @viict/node-nitgen-enbsp

Simple code

const enbsp = require('@viict/node-nitgen-enbsp');
const init = enbsp.init();

let fir1, fir2;
if(init === enbsp.NBioAPIERROR_NONE){
	console.log("Insert the first fingerprint: ");
	fir1 = enbsp.capture(4000);

	console.log("Insert the second fingerprint: ");
	fir2 = enbsp.capture(4000);
}

console.log(`Match: `, enbsp.match(fir1, fir2) === true);
enbsp.close()

Usage: cloning repo

git clone https://github.com/viict/node-nitgen-enbsp.git
cd node-nitgen-enbsp
yarn
yarn test

Simple code

const enbsp = require('./index.js');
const init = enbsp.init();

let fir1, fir2;
if(init == enbsp.NBioAPIERROR_NONE){
	console.log("Insert the first fingerprint: ");
	fir1 = enbsp.capture(4000);

	console.log("Insert the second fingerprint: ");
	fir2 = enbsp.capture(4000);
}

console.log(`Match: `, enbsp.match(fir1, fir2) === true);
enbsp.close()

Check the test.js for more examples

Any problem? Open a new issue

About

NITGEN ENBSP Module for NodeJS

License:GNU General Public License v3.0


Languages

Language:C 84.1%Language:C++ 12.9%Language:JavaScript 2.6%Language:Python 0.4%