1.0.5 • Published 3 years ago
usastatecitylist v1.0.5
USA State & City List
A complete (almost 😉) list of US states and their cities.
Installation
Use the package manager npm to install.
npm install usastatecitylist
Usage
const data = require("usastatecitylist");
- GetState(): returns an Array of states
const states = data.GetState();
- GetCities(): returns an Array of cities for a parameter passed for state
const cities = data.GetCities("Alaska");
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.