Skip to content

Give it a U.S. state, and it will give you an array of all the city names in that state

License

Notifications You must be signed in to change notification settings

pwbrown/state-cities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

State Cities


Get a list of states or give it a U.S. state, and it will give you an array of all the city names in that state

Add it

  1. $ npm install state-cities --save
var stateCities = require('state-cities');

Usage

Get all U.S. states

// Get all states
var states = stateCities.getStates();

### Retrieve an array of all city names for a particular state
```javascript
// Case insensitive
var cities = stateCities.getCities("Montana");
// or 
var cities = stateCities.getCities("North Carolina");

About

Give it a U.S. state, and it will give you an array of all the city names in that state

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •