Skip to content

Get the information of the states and cities of Brazil.

License

Notifications You must be signed in to change notification settings

lucastzmov/state-city-brazil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

state-city-brazil version bundle license

Get the information of the states and cities of Brazil.

How to install

Yarn

yarn add state-city-brazil

NPM

npm install --save state-city-brazil

Available 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.

About

Get the information of the states and cities of Brazil.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published