1.0.13 • Published 1 year ago

mrzilian.js v1.0.13

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Mrzilian.js

image

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):

Fields Distribution of Official Travel Documents

image

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

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago