New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

state-cities

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

state-cities

Input state name and receive array of city names for that state

latest
Source
npmnpm
Version
1.0.6
Version published
Weekly downloads
50
-12.28%
Maintainers
1
Weekly downloads
 
Created
Source

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

  • $ 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");

FAQs

Package last updated on 05 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts