npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

china-province-data

v1.0.0

Published

中国省份城市区数据

Downloads

1

Readme

中国行政区域数据

安装

npm install china-area-data

版本说明

目录下的 data.json 默认为最新版本。

为了方便一些处理,在每个版本下生成了 only_2_level_city_id.json 文件方便统计和处理一些只有二级省市的条目。

vux 目录生成的是 VUX 组件库地址组件 XAddress 的内置数据。

如果你想自己执行数据生成,请使用 npm run build

说明2

原版本为其它的,由于data数据很久未更新,2020/6/4日更新。

数据爬取自国家统计局

并做了部分修改,添加台、港、澳。删除中山,东莞等没有区级的问题

v4

同 v3,但是把原来应该在县下的从直辖市分离出来。

v3

最新县及县以上行政区划代码(截止2016年7月31日)

v2

最新县及县以上行政区划代码(截止2015年9月30日)

更新

v4.0.0

数据源同 v3,但是重庆下的县作为列表放出来。

v3.0.0

根据 2017.03.10 统计局数据进行更新

v2.1.0

简化市辖区,不加市前缀。比如 北京市 - 北京市市辖区 - 东城区 => 北京市 - 市辖区 - 东城区

v2.0.0

  • 按照最新统计局数据进行更新,部分区域已经不存在,部分id做了更新。因此请谨慎更新,评估后端数据存储设计和前端交互再进行更新,避免错误更新用户数据或者导致数据丢失。

完整更新如图