mrzilian.js
v1.0.13
Published
a simple lib to generate and check mrz without dependencies
Downloads
2
Readme
Mrzilian.js
Description
Machine Readable Zone generator and checker for official travel documents sizes 1, 2, 3, MRVA and MRVB (Passports, Visas, national id cards and other travel documents)
MRZ Generator and MRZ Checker are built according to International Civil Aviation Organization specifications (ICAO 9303):
- Specifications Common to all Machine Readable Travel Documents (MRTDs)
- Specifications for Machine Readable Passports (MRPs)
- Specifications for TD1 Size Machine Readable Official Travel Documents (MROTDs)
- Specifications for TD2 Size Machine Readable Official Travel Documents (MROTDs)
- Specifications for Machine Readable Visas (MRV)
Fields Distribution of Official Travel Documents
Usage
const document = new TD1Document(
"ID",
"MOZ",
"50012",
"M",
"Keven José Manuel",
"Gonçalves",
"24/04/2002",
"31/05/2027",
"MOZ",
"DA",
"12"
)
const generator = new TD1Generator(document)
console.log(generator)
const mrz = "IDMOZ50012M<<<<<<<<<<<<<<<\n50012<DA<12<<<<<<<<<<<<<<<<<";
const checker = TD1Checker(mrz, false)
checker.check()
TODO:
- [ ] Add Tests
- [ ] Better Refactoring
- [ ] Better Characters Normalization
- [ ] Better Documentation
Thanks to Arg0s1080 for the comprehension about MRZ