Get postal code from Correos de Chile
npm i -S codigo-postal
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
}