Skip to content

vandit-bera/county

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

- Get county of the US

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published