@opd/gbt2260
TypeScript icon, indicating that this package has built-in type declarations

2.1.3-202312 • Public • Published

GBT2260

gbt/2260 node npm license Build Status Standard - JavaScript Style Guide Coverage Status Known Vulnerabilities

latest Chinese administrative divisions from MCA, and based on gb2260

Install

npm i @opd/gbt2260

Use

const gbt2260 = require('@opd/gbt2260')

API

  • gbt2260.provinces(): 获取省级行政区划
  • gbt2260.prefectures(): 获取市级行政区划,若为直辖市,则返回辖区
  • gbt2260.counties(): 获取县级行政区划

Crawl Data

npm run generate

Difference with gb2260

  1. gb2260 looks like a dead project, no one in maintain
  2. rewrite prefectures()

Package Sidebar

Install

npm i @opd/gbt2260

Weekly Downloads

2

Version

2.1.3-202312

License

MIT

Unpacked Size

4.43 MB

Total Files

67

Last publish

Collaborators

  • kagawa