Machine-readable zone code generator
This library helps to generate Machine-readable zone codes. It's implemented with Node.js and TypeScript.
Dependencies:
The project depends on the following dev libraries:
Node.js
;TypeScript
;jest
andts-jest
;ts-node-dev
;tslint
.
Installation
To install it as your project dependency, run:
$ npm install mrz-gen
API
The library exports some methods:
generate
– the function that actually generates the code. It validates the data and generates the MRZ code.;
Basic example
You could use generate
function to generate a machine-readable zone code.
; ; // Prints P<USALODGES<<JANE<<<<<<<<<<<<<<<<<<<<<<<<<<<\n1234567897USA8302010F28030211234567890123454console.logcode;
Copyright
Author: Sachin Lubana (@lubanasachin)