Coder Social home page Coder Social logo

china-region-data's Introduction

**省市区数据

CI codecov npm

特性

  • 省市区关联数据

  • 支持TS类型提示

  • 通过数据关联测试

安装

npm i china-region-data

使用方式

import { province, city, county } from 'china-region-data'

//do something

数据格式

省份数据

const province = [
    {
        //省份名称
        name: '浙江省',
        //行政区划代码
        id: '330000000000'
    },
    //...
]

市级数据

const city = {
    //省行政区划代码
    '330000000000': [
        {
            //上级省份
            province: '浙江省',
            //市级名称
            name: '湖州市',
            //行政区划代码
            id: '330500000000'
        },
        //...
    ],
    //...
}

地区数据

const country = {
    //市行政区划代码
    '330500000000': [
        {
            //上级市级
            city: '湖州市',
            //地区名称
            name: '德清县',
            //行政区划代码
            id: '330521000000'
        }
        //...
    ],
    //...
}

china-region-data's People

Contributors

javanshen avatar renovate[bot] avatar

Stargazers

 avatar

Watchers

 avatar

china-region-data's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • ⬆️ Replace dependency rollup-plugin-terser with @rollup/plugin-terser ^0.1.0
  • ⬆️ Update dependency @types/jest to v29.5.12
  • ⬆️ Update dependency ts-node to v10.9.2
  • ⬆️ Update actions/cache action to v4
  • ⬆️ Update actions/setup-node action to v4
  • ⬆️ Update codecov/codecov-action action to v4
  • ⬆️ Update dependency rollup to v4
  • ⬆️ Update dependency ts-patch to v3
  • ⬆️ Update dependency typescript to v5
  • 🔐 Create all rate-limited PRs at once 🔐

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v3
  • actions/setup-node v3
  • actions/cache v3
  • codecov/codecov-action v3
npm
package.json
  • @rollup/plugin-alias ^3.1.9
  • @rollup/plugin-babel ^5.3.1
  • @rollup/plugin-json ^4.1.0
  • @rollup/plugin-typescript ^8.5.0
  • @types/jest ^29.1.1
  • babel-jest ^29.1.2
  • jest ^29.1.2
  • rollup ^2.79.1
  • rollup-plugin-terser ^7.0.2
  • ts-jest ^29.0.3
  • ts-node ^10.9.1
  • ts-patch ^2.0.2
  • tslib ^2.4.0
  • typescript ^4.8.4
  • typescript-transform-paths ^3.3.1

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.