1.0.5 • Published 1 year ago

county v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

County

County is a simple JavaScript library that provides functionality for working with state-wise county names in the United States.

Installation

You can install the County Library via npm:

npm install county

Usage

Importing the Library

const countyLibrary = require("county");

Getting All States

const states = countyLibrary.getAllStates();
console.log(states);
// Output: ["Alabama", "Alaska", /* Other states */]

Getting Counties by State

const counties = countyLibrary.getCountiesByState("Alabama");
console.log(counties);
// Output: ["Autauga", "Baldwin", "Barbour", /* Other counties in Alabama */]

Searching Counties

const matchingCounties = countyLibrary.searchCounties("lake");
console.log(matchingCounties);
// Output: ["Lake", "Lake and Peninsula", /* Other matching counties */]

License

  • This project is licensed under the MIT License - see the LICENSE file for details.
1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

0.0.1

3 years ago