get-state-by-country-name
v1.0.2
Published
Get all countries state name by country name
Downloads
195
Maintainers
Readme
Get State By Country
A lightweight utility for fetching state or region names by country. This package provides a simple way to access country-related data, including state or region information, making it useful for applications that require geographical data or user location handling.
Features
- Fetch state or region names for a given country.
- Easy-to-use API for quick integration.
- Supports various country data formats and consistent data handling.
- Lightweight and optimized for performance.
Installation
Install the package via npm:
npm install get-state-by-country
Get all state by country name
// get all countries
import { getStatesByCountryName } from "get-state-by-country";
const states = getStatesByCountryName();
console.log(countryNames);
// Output: []