1.0.2 • Published 2 years ago

india-state-district v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

India State and District

India Flag

This npm package provides functions to get the list of Indian states and districts.

Features

  • getIndiaState(): Returns an array of objects representing Indian states with their names and codes.
  • getIndiaDistrict(stateCode): Returns an array of districts for the specified state code.

Installation

npm install india-state-district

Usage

const { getIndiaState, getIndiaDistrict } = require("india-state-district")

// Get the list of Indian states
const states = getIndiaState()
console.log("Indian States:", states)

// Get the districts of a specific state (default is Andhra Pradesh)
const districts = getIndiaDistrict("UK")
console.log("Districts of Uttarakhand:", districts)

Author

Suraj Aswal

Repository

GitHub Repository

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago