
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Parse Pdf417 barcode data from US and Canada driver licenses. AAMVA specification
npm i aamvajs
or
yarn add aamvajs
const AAMVA = require('aamvajs');
const rawDocument = `@
ANSI 636010090002DL00410249ZF02900058DLDAQS123456579010
DCSSAMPLE
DDEU
DACNICK
DDFU
DADNONE
DDGU
DCAE
DCBNONE
DCDNONE
DBD07272016
DBB01121957
DBA01122024
DBC1
DAU070 IN
DAG123 MAIN STREET
DAITALLAHASSEE
DAJFL
DAK000001234
DCFQ931611290000
DCGUSA
DCK0110009295000261
DDAF
DDB05012019
ZFZFA
ZFB
ZFCSAFE DRIVER
ZFD
ZFE
ZFF
ZFG
ZFH
ZFI
ZFJ
ZFK
`;
const document = AAMVA.raw(rawDocument, {
clearNoneValue: false, // Default false
removeEmptyFields: false // Default false
});
// or
// const base64RawDocument = 'QAoeCkFOU0kgNjM2MDEwMDkwMDAyREwwMDQxMDI0OVpGMDI5MDAwNThETERBUVMxMjM0NTY1NzkwMTAKRENTU0FNUExFCkRERVUKREFDTklDSwpEREZVCkRBRE5PTkUKRERHVQpEQ0FFCkRDQk5PTkUKRENETk9ORQpEQkQwNzI3MjAxNgpEQkIwMTEyMTk1NwpEQkEwMTEyMjAyNApEQkMxCkRBVTA3MCBJTgpEQUcxMjMgTUFJTiBTVFJFRVQKREFJVEFMTEFIQVNTRUUKREFKRkwKREFLMDAwMDAxMjM0ICAKRENGUTkzMTYxMTI5MDAwMApEQ0dVU0EKRENLMDExMDAwOTI5NTAwMDI2MQpEREFGCkREQjA1MDEyMDE5CgpaRlpGQQpaRkIKWkZDU0FGRSBEUklWRVIKWkZEClpGRQpaRkYKWkZHClpGSApaRkkKWkZKClpGSwoK';
// const document = AAMVA.base64(base64RawDocument);
console.log(JSON.stringify(document, null, ' '));
Output:
{
"header": {
"separator": "\n",
"terminator": "\n",
"fileType": "ANSI",
"iin": "636010",
"version": 9,
"jurisdictionVersion": 0,
"numberOfEntries": 2
},
"subfiles": [
{
"type": "DL",
"offset": 41,
"length": 249,
"data": [
"DAQS123456579010",
"DCSSAMPLE",
"DDEU",
"DACNICK",
"DDFU",
"DADNONE",
"DDGU",
"DCAE",
"DCBNONE",
"DCDNONE",
"DBD07272016",
"DBB01121957",
"DBA01122024",
"DBC1",
"DAU070 IN",
"DAG123 MAIN STREET",
"DAITALLAHASSEE",
"DAJFL",
"DAK000001234 ",
"DCFQ931611290000",
"DCGUSA",
"DCK0110009295000261",
"DDAF",
"DDB05012019"
]
},
{
"type": "ZF",
"offset": 290,
"length": 58,
"data": [
"ZFA",
"ZFB",
"ZFCSAFE DRIVER",
"ZFD",
"ZFE",
"ZFF",
"ZFG",
"ZFH",
"ZFI",
"ZFJ",
"ZFK"
]
}
],
"data": {
"localFields": {
"specialRestrictions": "",
"safeDriverIndicator": "SAFE DRIVER",
"sexualPredator": "",
"sexOffenderStatute": "",
"insulinDependent": "",
"developmentalDisability": "",
"hearingImpaired": "",
"fishAndWildlifeDesignations": "",
"customerNumber": ""
},
"idNumber": "S123456579010",
"familyName": "SAMPLE",
"familyNameTruncation": "U",
"firstName": "NICK",
"firstNameTruncation": "U",
"middleName": "NONE",
"middleNameTruncation": "U",
"vehicleClass": "E",
"restrictionCodes": "NONE",
"endorsementCodes": "NONE",
"issueDate": "2016-07-27",
"dateOfBirth": "1957-01-12",
"expirationDate": "2024-01-12",
"sex": "M",
"height": "070 IN",
"address": "123 MAIN STREET",
"city": "TALLAHASSEE",
"state": "FL",
"zip": "000001234",
"discriminator": "Q931611290000",
"country": "USA",
"inventoryControlNumber": "0110009295000261",
"complianceType": "F",
"cardRevisionDate": "2019-05-01"
}
}
FAQs
Parse Pdf417 barcode data from US and Canada driver licenses. AAMVA Parser
The npm package aamvajs receives a total of 1,201 weekly downloads. As such, aamvajs popularity was classified as popular.
We found that aamvajs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.