get-state-by-country-name

1.0.2 • Public • Published

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: []

Package Sidebar

Install

npm i get-state-by-country-name

Weekly Downloads

4

Version

1.0.2

License

ISC

Unpacked Size

1.96 kB

Total Files

3

Last publish

Collaborators

  • zayedhossain120