idscanner
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

ID and Passport Swipe Parser

Description

Designed for the use of Hotel/Youth Hostel/Accommodation providers. Will take the OCR string from an MRZ Scanner, for example the 3M CR100, and parse all of the data to an object containing all of the Passport/ID's personal data.

Usage

Include the idreader package like so var idscanner = require("idscanner");.

idreader has one functional method getIDData which takes the string as read from the passport/id swipe machine.

idreader has one example method returnTestData.

Example Usage

var idscanner = require("idscanner");

//ONCE YOU HAVE COLLECTED YOUR SWIPE FROM THE PASSPORT/ID SWIPE READER INSERT IT AS THE PARAMETER TO getIDData
var parsedData = getIDData("START\nOCR LINE 1: P<RUSMALBORSKYI<<KOVBOJ<<<<<<<<<<<<<<<<<<<<<\nOCR LINE 2: 7553279419RUS8712242M2104131<<<<<<<<<<<<<<02\nOCR LINE 3:\nMSR LINE 1:\nMSR LINE 2:\nMSR LINE 3:\nEND");

//TO GET AN EXAMPLE RESULT OBJECT OUT CALL returnTestData
var exampleParsedData = returnTestData();

Package Sidebar

Install

npm i idscanner

Weekly Downloads

0

Version

1.0.6

License

ISC

Unpacked Size

9.17 kB

Total Files

5

Last publish

Collaborators

  • adam.strain.dev