# india-state-codes

> India state names and postal codes

Latest version **1.0.1** (published 2020-04-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install india-state-codes
pnpm add india-state-codes
yarn add india-state-codes
bun add india-state-codes
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-04-26 |
| First published | 2020-04-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 7.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Rahul Gurung |
| Maintainers | gurrrung |
| Keywords | india, state, postal, code, name |

## Links

- npm: https://www.npmjs.com/package/india-state-codes
- Repository: https://github.com/gurrrung/india-state-codes
- Homepage: https://github.com/gurrrung/india-state-codes#readme
- Issues: https://github.com/gurrrung/india-state-codes/issues
- npm.io page: https://npm.io/package/india-state-codes

## Dependencies (3)

- [lodash.map](https://npm.io/package/lodash.map.md) ^4.6.0
- [lodash.invert](https://npm.io/package/lodash.invert.md) ^4.3.0
- [lodash.isstring](https://npm.io/package/lodash.isstring.md) ^4.0.1

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-04-26
- 1.0.0 — 2020-04-26

## README

# india-state-codes

A library to help you search, validate, and convert between India state names and state codes.

## Installation

```sh
npm install india-state-codes --save
```

## Usage

```javascript
var states = require('india-state-codes');

states.sanitizeStateCode('PB.')  // PB
states.sanitizeStateName('(PunJAB) ')  // Punjab
states.getStateNameByStateCode('...MH.=') // Maharashtra
states.getStateCodeByStateName('!D#!%e123132lhi') // DL (Delhi)
```
## Inspired from
https://github.com/mdzhang/us-state-codes

---
_Source: https://npm.io/package/india-state-codes · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
