Nouveau Papier Mâché

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

    8.2.0 • Public • Published

    国家和地区代码列表

    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 包含所有包内容 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

    Install

    npm i @province-city-china/country

    DownloadsWeekly Downloads

    17

    Version

    8.2.0

    License

    MIT

    Unpacked Size

    87.9 kB

    Total Files

    7

    Last publish

    Collaborators

    • wcjiang