codigo-postal
v3.0.0
Published
Get postal code from Correos de Chile
Downloads
48
Maintainers
Readme
codigo-postal
Get postal code from Correos de Chile
Installation
npm i -S codigo-postal
Use
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
}