1.1.1 • Published 3 years ago
state-city-brazil v1.1.1
state-city-brazil

Get the information of the states and cities of Brazil.
How to install
Yarn
yarn add state-city-brazilNPM
npm install --save state-city-brazilAvailable methods
| Method | Params | Description |
|---|---|---|
| getStates | - | returns all states of brazil |
| getStatesByCity | string | returns all states by city name |
| getCitiesByState | string | returns all cities in a state |
How to use
ES5
var state_city_brazil = require('state_city_brazil');
console.log(state_city_brazil.getStates());ES6
import {
getCitiesByState,
getStates,
getStatesByCity,
} from 'state_city_brazil';
console.log(getStates());Contributing
Feel free to contribute to this project. Just open a Pull Request.