1.0.6 • Published 6 years ago

state-cities v1.0.6

Weekly downloads
32
License
MIT
Repository
github
Last release
6 years ago

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");
1.0.6

6 years ago

1.0.5

7 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago