# @do-kevin/pc-vn

> Type-safe & simple utility library for searching and filtering Vietnam's localities.

Latest version **2.1.11** (published 2023-05-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @do-kevin/pc-vn
pnpm add @do-kevin/pc-vn
yarn add @do-kevin/pc-vn
bun add @do-kevin/pc-vn
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.11 |
| Published | 2023-05-03 |
| First published | 2021-08-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 13 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kevin Do |
| Maintainers | do-kevin |
| Keywords | vietnam, ward, district, province, localities, search, filter, javascript |

## Links

- npm: https://www.npmjs.com/package/@do-kevin/pc-vn
- Repository: https://github.com/do-kevin/pc-vn
- Homepage: https://do-kevin.github.io/pc-vn
- Issues: https://github.com/do-kevin/pc-vn/pc-vn/issues
- npm.io page: https://npm.io/package/@do-kevin/pc-vn

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 2.1.11 (latest) — 2023-05-03
- 2.1.0 — 2022-12-31
- 2.0.6 — 2022-12-31
- 2.0.5 — 2021-08-12
- 2.0.4 — 2021-08-12
- 2.0.3 — 2021-08-12
- 2.0.2 — 2021-08-12
- 2.0.1 — 2021-08-12
- 2.0.0 — 2021-08-12

## README

# @do-kevin/pc-vn

Type-safe & simple utility library for searching and filtering Vietnam's localities.

## Documentation

Visit the [official documentation](https://do-kevin.github.io/pc-vn).

## Install

    npm install @do-kevin/pc-vn
    yarn install @do-kevin/pc-vn

## Functions

| Function                                 | Desciption                                          |
| ---------------------------------------- | --------------------------------------------------- |
| getProvinces()                           | Get all provinces                                   |
| getDistricts()                           | Get all districts                                   |
| getWards()                               | Get all wards                                       |
| getDistrictsByProvinceCode(provinceCode) | Get districts by province code(from getProvinces()) |
| getWardsByDistrictCode(districtCode)     | Get wards by district code(from getDistricts())     |
| getWardsByProvinceCode(provinceCode)     | Get wards by province code(from getProvinces())     |

## Usage

```
import {
  getDistrictsByProvinceCode,
  getProvinces,
  getWardsByDistrictCode,
} from '@do-kevin/pc-vn';

const provinces = getProvinces();

const wards = getWardsByDistrictCode("268");

const districts = getDistrictsByProvinceCode("95");
```

---
_Source: https://npm.io/package/@do-kevin/pc-vn · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
