CEP Aberto JavaScript SDK
This is the JavaScript SDK for the CEP Aberto API to search for addresses and zipcodes directly from your JS application.
CEP Aberto is an Open Database Project that provides a free of charge zipcode database and a simple API that allows you to fetch the information on-the-fly.
Installation
$ npm install --save cepaberto
Usage
Importing the library to your code:
const CEPAberto = let cepaberto =
Find address by zipcode
cepaberto
If the address was not found, the address variable will be a boolean false
.
Find address by coordinates
cepaberto
Find zipcode by address
cepaberto
Only the state and city parameters are mandatory because some zipcodes represents an entire city.
Find cities
cepaberto
Tests
$ npm test
License
This library is licensed under the MIT license.