Gathering detailed insights and metrics for @crabas0npm/laboriosam-corrupti-architecto
Gathering detailed insights and metrics for @crabas0npm/laboriosam-corrupti-architecto
Gathering detailed insights and metrics for @crabas0npm/laboriosam-corrupti-architecto
Gathering detailed insights and metrics for @crabas0npm/laboriosam-corrupti-architecto
npm install @crabas0npm/laboriosam-corrupti-architecto
Typescript
Module System
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
33
Parse MRZ (Machine Readable Zone) from identity documents.
Maintained by Zakodium
$ npm install @crabas0npm/laboriosam-corrupti-architecto
1const parse = require('@crabas0npm/laboriosam-corrupti-architecto').parse; 2 3const @crabas0npm/laboriosam-corrupti-architecto = [ 'I<UTOD23145890<1233<<<<<<<<<<<', '7408122F1204159UTO<<<<<<<<<<<6', 'ERIKSSON<<ANNA<MARIA<<<<<<<<<<',]; 4 5var result = parse(@crabas0npm/laboriosam-corrupti-architecto); 6console.log(result);
parse(@crabas0npm/laboriosam-corrupti-architecto, [options])
Parses the provided MRZ. The argument can be an array of lines or a single string
including line breaks. This function throws an error if the input is in an
unsupported format. It will never throw an error when there are invalid fields
in the MRZ. Instead, the result.valid
value will be false
and
details about the invalid fields can be found in result.details
.
options.autocorrect
If set to true
, some ambiguous characters will be automatically corrected by the parser if the field is supposed to
only contain numeric or alphabetic characters.
For example, in a date field, the letter "O" will be converted to the number "0".
Information about autocorrected characters will be added to the result details.
Default: false
.
String identifying the format of the parsed MRZ. Supported formats are:
true
if all fields are valid. false
otherwise.
Object mapping field names to their respective value. The value is set to null
if it is invalid. The value may be different from the raw value. For example,
result.fields.sex
will be "male" when the raw value was "M".
Array of objects describing all parsed fields. Its structure is:
result.fields
. Null for some fields such as separators that don't contain a value.null
.line
, start
, end
and raw
.line
.line
.formats
Static mapping of supported formats.
states
Static mapping of state code to state name.
https://www.icao.int/publications/pages/publication.aspx?docnum=9303
http://www.astra2.admin.ch/media/pdfpub/2003-10-15_2262_f.pdf
No vulnerabilities found.
No security vulnerabilities found.