JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q38408F
  • License ISC

Read Passport and ID Swiped as Taken From OCR Swipe Readers using the Machine Readable Zone of Passports and IDs.

Package Exports

  • idscanner

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 (idscanner) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

#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();