chinese-region-util

1.1.3 • Public • Published

chinese-region-util

Provide administrative regional structure of china.

Installation

$ npm install --save chinese-region-util
or
$ yarn add chinese-region-util --dev

Methods

  • findAll(): get full tree.
  • findOne(code): find one node by code.
  • getChildren(parentCode): get children by parent code.
  • getAllProvince(): find all provinces.
  • getAllCity(): find all cities.
  • getAllArea(): find all areas.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i chinese-region-util

Weekly Downloads

8

Version

1.1.3

License

MIT

Unpacked Size

263 kB

Total Files

12

Last publish

Collaborators

  • oyhanyu