Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lgaticaq/codigo-postal
Get postal code from Correos de Chile
https://github.com/lgaticaq/codigo-postal
chile codigo-postal correos-de-chile zip-code
Last synced: 18 days ago
JSON representation
Get postal code from Correos de Chile
- Host: GitHub
- URL: https://github.com/lgaticaq/codigo-postal
- Owner: lgaticaq
- License: mit
- Created: 2016-01-04T22:10:23.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-09-24T21:15:36.000Z (about 2 months ago)
- Last Synced: 2024-10-11T21:10:13.640Z (about 1 month ago)
- Topics: chile, codigo-postal, correos-de-chile, zip-code
- Language: JavaScript
- Size: 1.49 MB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 48
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# codigo-postal
[![npm version](https://img.shields.io/npm/v/codigo-postal.svg)](https://www.npmjs.com/package/codigo-postal)
[![npm downloads](https://img.shields.io/npm/dm/codigo-postal.svg)](https://www.npmjs.com/package/codigo-postal)
[![Build Status](https://travis-ci.org/lgaticaq/codigo-postal.svg?branch=master)](https://travis-ci.org/lgaticaq/codigo-postal)
[![Coverage Status](https://coveralls.io/repos/github/lgaticaq/codigo-postal/badge.svg?branch=master)](https://coveralls.io/github/lgaticaq/codigo-postal?branch=master)
[![Maintainability](https://api.codeclimate.com/v1/badges/6d54d170f29dfb6ee7a2/maintainability)](https://codeclimate.com/github/lgaticaq/codigo-postal/maintainability)
[![dependency Status](https://img.shields.io/david/lgaticaq/codigo-postal.svg)](https://david-dm.org/lgaticaq/codigo-postal#info=dependencies)
[![devDependency Status](https://img.shields.io/david/dev/lgaticaq/codigo-postal.svg)](https://david-dm.org/lgaticaq/codigo-postal#info=devDependencies)> Get postal code from Correos de Chile
## Installation
```bash
npm i -S codigo-postal
```## Use
[Try on Tonic](https://tonicdev.com/npm/codigo-postal)
```js
const codigoPostal = require('codigo-postal')const data = {
address: 'avenida siempreviva',
number: 742,
commune: 'springfield'
}codigoPostal(data).then(console.log)
```Result:
```js
{
zip: XXXXX, // a number
address: XXXXX, // a string
number: XXXXX, // a string
commune: XXXXX, // a string
}
```## License
[MIT](https://tldrlegal.com/license/mit-license)