UNPKG

aamva-parser

Version:

Plugin to parse AAMVA Drivers License Data from the PDF417 barcode

18 lines (14 loc) 476 B
import { ParsedLicense } from "./parsedLicense"; import { LicenseParser } from "./classes/parser"; export function Parse(barcode: string): ParsedLicense { const parser = new LicenseParser(barcode); return parser.parse(); } export function GetVersion(barcode: string) { const parser = new LicenseParser(barcode); return parser.parseVersion(); } export function IsExpired(barcode: string) { const parser = new LicenseParser(barcode); return parser.isExpired(); }