# get-state-iso2

> Get the state in ISO3166-2 format based on Country & Zipcode

Latest version **1.0.4** (published 2020-07-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-state-iso2
pnpm add get-state-iso2
yarn add get-state-iso2
bun add get-state-iso2
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2020-07-15 |
| First published | 2020-07-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 16.1 MB |
| Known vulnerabilities | 0 (+7 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Harsh Srivastava |
| Maintainers | harshsrv |
| Keywords | get-state, get-state-in-iso, iso-3166-2, zipcode, get-state-from-zipcode, state-from-pincode, state-in-iso, get state in iso format |

## Links

- npm: https://www.npmjs.com/package/get-state-iso2
- Repository: https://github.com/harsh-sri/get-state-iso-3166-2
- Homepage: https://github.com/harsh-sri/get-state-iso-3166-2/issues
- Issues: https://github.com/harsh-sri/get-state-iso-3166-2/issues
- npm.io page: https://npm.io/package/get-state-iso2

## Dependencies (2)

- [adm-zip](https://npm.io/package/adm-zip.md) 0.4.16
- [papaparse](https://npm.io/package/papaparse.md) 5.2.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2020-07-15
- 1.0.3 — 2020-07-15
- 1.0.2 — 2020-07-15
- 1.0.1-rc6 — 2020-07-15
- 1.0.1-rc5 — 2020-07-15
- 1.0.1-rc4 — 2020-07-15
- 1.0.1-rc3 — 2020-07-15
- 1.0.1-rc2 — 2020-07-15
- 1.0.1-rc1 — 2020-07-15
- 1.0.1-rc — 2020-07-15
- 1.0.1 — 2020-07-15
- 1.0.0 — 2020-07-14

## README

# Base Zipcode ISO3166-2

ZipUtil to get the state in ISO3166-2 format based on Country & Zip code.

### Install

```bash
npm i get-state-iso2 --save
```

### Usage

Import 

```
const ZipUtil = require('get-state-iso2').default
```

Initialize ZipUtil by passing configuration object in load function
```
ZipUtil.init({supportedCountries: ['IN'], supportedCountryOnly: true});
```

To get the state
```
await ZipUtil.getInstance().getState('NL', '1016 DC');
await ZipUtil.getInstance().getState('IN', '110016');
```

### License
MIT

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