@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()

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.1.3-2023126latest

Version History

VersionDownloads (Last 7 Days)Published
2.1.3-2023126
2.1.3-2020122
2.1.2-2020121
2.1.2-2020111
2.1.2-2020101
2.1.2-2020091
2.1.2-2020082
2.1.2-2020071
2.1.1-2020072
2.1.1-2020061
2.1.11
2.1.1-2020051
2.1.1-2020032
2.1.1-20200021
2.0.8-20200022
2.0.7-20200021
2.0.7-2020012
2.0.7-2019121
2.0.7-2019112
2.0.6-2019101
2.0.5-2019101
2.0.4-2019093
2.0.4-2019082
2.0.3-2019081
2.0.31
2.0.21
2.0.11
2.0.01
1.3.1-2019071
1.3.0-2019071
1.2.2019072
1.2.2019062

Package Sidebar

Install

npm i @opd/gbt2260

Weekly Downloads

48

Version

2.1.3-202312

License

MIT

Unpacked Size

4.43 MB

Total Files

67

Last publish

Collaborators

  • kagawa