/state-cities

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

Primary LanguageJavaScriptMIT LicenseMIT

State Cities


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

Retrieve an array of all city names for a particular state

// Case insensitive
var cities = stateCities.getCities("Montana");
// or 
var cities = stateCities.getCities("North Carolina");