codigo-postal
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

codigo-postal

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

Get postal code from Correos de Chile

Installation

npm i -S codigo-postal

Use

Try on Tonic

const codigoPostal = require('codigo-postal')
 
const data = {
  address: 'avenida siempreviva',
  number: 742,
  commune: 'springfield'
}
 
codigoPostal(data).then(console.log)

Result:

{
  zip: XXXXX, // a number
  address: XXXXX, // a string
  number: XXXXX, // a string
  commune: XXXXX, // a string
}

License

MIT

Package Sidebar

Install

npm i codigo-postal

Weekly Downloads

1

Version

3.0.0

License

MIT

Unpacked Size

16 kB

Total Files

11

Last publish

Collaborators

  • lgatica