$ npm install popcorn-cep --save// to import a specific method
import { location } from 'popcorn-cep';
// using method
location({ cep: '12345-150' });Follow the methods that the library provides.
Method that fetches information for a street through zip code or searches for information about a street through the State, City and part of the street name.
Arguments
| Argument | Type |
|---|---|
cep |
string |
query |
object |
Example
const data = local({ cep: '12345-150' });
const data = local({ query: { uf: 'MG', city: 'Belo Horizonte': street: 'pampulha' } });Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
| Denner Rondinely |
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details