@province-city-china/level
TypeScript icon, indicating that this package has built-in type declarations

8.5.8 • Public • Published

省/地/县/乡层级数据

npm install @province-city-china/level --save-dev

level.json | level.min.json

[
  {
    "code": "420000",
    "name": "湖北省",
    "province": "42",
    "children": [
      {
        "code": "420100",
        "name": "武汉市",
        "province": "42",
        "city": "01",
        "children": [
          {
            "code": "420102",
            "name": "江岸区",
            "province": "42",
            "city": "01",
            "area": "02"
          },
          // ...
        ]
      }
      // ...
    ]
  }
  // ...
]

压缩数据说明 level.min.json

code: 'c'
name: 'n'
province: 'p'
city: 'y'
area: 'a'
children: 'd'
包名 说明 版本 大小
province-city-china 包含所有包内容 npm package -
@province-city-china/country 国家和地区代码列表 npm package
@province-city-china/data 总数据(省/地/县/乡) npm package
@province-city-china/province 省级(省/直辖市/特别行政区) npm package
@province-city-china/city 地级(城市) npm package
@province-city-china/area 县级(区县) npm package
@province-city-china/town 乡级(乡镇/街) npm package
@province-city-china/level 总数据(省/地/县/乡)层级数据 npm package
@province-city-china/utils 提供使用数据方法 npm package
@province-city-china/types 类型文件 npm package -
@province-city-china/district-code 国内长途电话区号 npm package -

Dependents (4)

Package Sidebar

Install

npm i @province-city-china/level

Weekly Downloads

5

Version

8.5.8

License

MIT

Unpacked Size

841 kB

Total Files

6

Last publish

Collaborators

  • wcjiang