Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Parse MRZ (Machine Readable Zone) from identity documents.
$ npm install --save mrz
const parse = require('mrz').parse;
let mrz = [
'I<UTOD23145890<1233<<<<<<<<<<<',
'7408122F1204159UTO<<<<<<<<<<<6',
'ERIKSSON<<ANNA<MARIA<<<<<<<<<<'
];
var result = parse(mrz);
console.log(result);
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
.
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 than 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
.line
, start
, end
and raw
.line
.line
.Static mapping of supported formats.
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
FAQs
Parse MRZ (Machine Readable Zone) from identity documents
The npm package mrz receives a total of 9,327 weekly downloads. As such, mrz popularity was classified as popular.
We found that mrz demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.