Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.5 KB

README.md

File metadata and controls

36 lines (26 loc) · 1.5 KB

info-rut

npm version npm downloads Build Status Coverage Status Maintainability dependency Status devDependency Status

Get person or enterprise from a valid RUT or full name

Installation

npm i -S info-rut

Use

Try on RunKit

const infoRut = require('info-rut')

const rut = '11111111-1'
infoRut.getPersonByRut(rut).then(console.log).catch(console.error)
infoRut.getEnterpriseByRut(rut).then(console.log).catch(console.error)

const name = 'juan perez'
infoRut.getPersonByName(name).then(console.log).catch(console.error)
infoRut.getEnterpriseByName(name).then(console.log).catch(console.error)

License

MIT