2.1.11 • Published 2 years ago

@do-kevin/pc-vn v2.1.11

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@do-kevin/pc-vn

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

Documentation

Visit the official documentation.

Install

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

Functions

FunctionDesciption
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");
2.1.11

2 years ago

2.1.1

2 years ago

2.0.6

2 years ago

2.1.0

2 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago