0.1.1 • Published 2 years ago

@ar-identification/decode v0.1.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

@ar-identification/decode

A decoder for the Argentinian DNI PDF417

Installation

yarn add @ar-identification/decode@0.1.1

Usage/Examples

The library includes a function called dniDecoder which decodes the data from the PDF417 code.

The DNI Object

proptype signaturedescription
namestringNombre / Name
surnamestringApellido / Surname
dateOfBirthDateFecha de nacimiento / Date of birth
dateOfIssueDateFecha de emisión / Date of issue
dateOfExpiryDateFecha de vencimiento / Date of expiry
copystringEjemplar
sex"MALE" \| "FEMALE" \| "NON_BINARY"Sexo / Sex
dnistringDocumento / Document
cuilstringCUIL
idstringTramite N° / Of. Ident

Implementation

import { dniDecoder } from "@ar-identification/decode";

const dni = await decode("00123456789@PITO@ELSA@F@1234567@B@22/11/1998@12/03/2018@204"); //returns a DNI object