tne-info
v1.0.1
Published
Get TNE information from RUT
Downloads
4
Readme
TNE-info
Disclamer: This is made with learning purposes, use by your own responsability.
Install
This project uses ES6, so make sure your Node version is compatible.
$ npm install --save tne-info
Usage
'use strict';
const tne = require('tne-info');
tne('XXXXXXXX-7').then(info => {
console.log(info);
}).catch(err => {
console.log('Invalid rut', err);
})
This prints:
{ pers_run: 'XXXXXXXX',
pers_dv_run: '7',
pers_primer_nombre: 'NAME',
pers_apellido_paterno: 'LASTNAME',
regi_nombre: 'REGION',
inst_rbd: 'NUMBER',
tipo_pase: 'PASS TYPE',
cd: 'ID',
folio_tne: '**FOLIO',
estado_tne: 'STATUS',
estado_tne_priv: 'DELIVERY',
sello: 'AVAILABLE',
vigencia: 'YEAR',
fec_recepcion: 'AVAILABLE',
periodo: 'YEAR',
regi_romano: 'INVALID' }