Package Exports
- @province-city-china/country
- @province-city-china/country/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@province-city-china/country) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
国家和地区代码列表
npm install @province-city-china/country --save-dev
country.json | country.min.json | country.csv
id=序号、cnname=中文简称、name=英文简称、fullname=英文全称、alpha2=两字母代码、alpha3=三字母代码、numeric=数字代码
[
{
"id": 1,
"cnname": "阿富汗",
"name": "Afghanistan",
"fullname": "the Islamic Republic of Afghanistan",
"alpha2": "AF",
"alpha3": "AFG",
"town": 4
},
{
"id": 45,
"cnname": "中国",
"name": "China",
"fullname": "the People's Republic of China",
"alpha2": "CN",
"alpha3": "CHN",
"town": 156
}
// ...
]
压缩数据说明 country.min.json
id: 'i'
cnname: 'c'
name: 'n'
fullname: 'f'
alpha2: 'a2'
alpha3: 'a3'
numeric: 'r'
包名 | 说明 | 版本 | 大小 |
---|---|---|---|
province-city-china | 包含所有包内容 | - | |
@province-city-china/country | 国家和地区代码列表 | ||
@province-city-china/data | 总数据(省/地/县/乡) | ||
@province-city-china/province | 省级(省/直辖市/特别行政区) | ||
@province-city-china/city | 地级(城市) | ||
@province-city-china/area | 县级(区县) | ||
@province-city-china/town | 乡级(乡镇/街) | ||
@province-city-china/level | 总数据(省/地/县/乡)层级数据 | ||
@province-city-china/utils | 提供使用数据方法 | ||
@province-city-china/types | 类型文件 | - | |
@province-city-china/district-code | 国内长途电话区号 | - |