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

site-linkage

v0.0.3

Published

中国各省市县区城市JSON数据联动,后期会持续更新,只提供数据,暂不直接提供UI组件!PS:由于本人最近工作太忙,业余时间太少,如果有愿意一起合作采集处理最新国内省市区县数据的同道,可与我联系:qq505072907, 微信:weixin918666666

Downloads

3

Readme

site-linkage 主要提供JSON格式的省市区三级联动数据

创建初衷: 由于项目所需,需要一份较新的中国各地省市县区的三级联动数据!不过经过几天的时间在网上搜集,发现确实没有较新的数据,或多或少有些缺陷,另外也发现不少人有这样的需求,因此自己花时间搜集了一份省市县区的三级联动数据,后期还会持续更新!有需要的朋友可以持续关注 本插件只提供数据源和基末的数据查询方式! 本项目源码地址

数据来源

数据采集整理来自各地方政府的网上政务中心行政区域信息 参考数据爬虫源码地址 目前这个爬虫暂时未写完,因为每个省的政务网站都存在一定的反爬功能,因此需要一个一个的去破解或者针对性的写爬虫功能!并且我本人每天也只能抽取少量的空闲时间完成这个爬虫,进展有些缓慢,不过我会坚持完成这个开源项目的!另外后期所有数据爬取完成之后,数据的格式我会增加一些其它常用格式导出功能,有需要朋友可以持续关注下!

使用方式

npm install site-linkage
const siteLinkage = require('site-linkage')
//siteLinkage.data  获取所有省的数组
//["北京市", "天津市", "河北省", "山西省", "内蒙古", "辽宁省", "吉林省", "黑龙江省", "上海市", "江苏省", "浙江省", "安徽省", "福建省", "江西省", "山东省", "河南省", "湖北省", "湖南省", "广东省", "广西", "海南省", "重庆市", "四川省", "贵州省", "云南省", "西藏", "陕西省", "甘肃省", "青海省", "宁夏", "新疆", "台湾省", "澳门", "香港"]

//siteLinkage.getProvince('四川省').data  获取四川省下面所有的市的数组
//["成都市", "自贡市", "攀枝花市", "泸州市", "德阳市", "绵阳市", "广元市", "遂宁市", "内江市", "乐山市", "南充", "眉山市", "宜宾市", "广安市", "达州市", "雅安市", "巴中市", "资阳市", "阿坝藏族羌族自治州", "甘孜藏族自治州", "凉山彝族自治州", "其他"]

//siteLinkage.getProvince('四川省').getCity('成都市').data  获取四川省成都市下面所有的区县的数组
//["高新区", "天府新区", "青羊区", "锦江区", "金牛区", "武侯区", "成华区", "龙泉驿区", "青白江区", "新都区", "温江区", "都江堰市", "彭州市", "邛崃市", "崇州市", "金堂县", "郫都区", "新津县", "双流区", "蒲江县", "大邑县", "简阳市", "其他"]

采集方式和问题反馈

PS:由于本人最近工作太忙,业余时间太少,如果有愿意一起合作采集处理最新国内省市区县数据的同道,可与我联系:qq505072907, 微信:weixin918666666 目前主要是半自动采集【针对不同地方的政府网站进行数据分析后针对性写爬虫采集】,最近发现有的地方政府的地址数据也并不是最新最准确的,希望有同道协助核实,并且希望各位网友发现数据存在的任何问题或者其它建议可以与我联系:[email protected]  qq505072907, 微信:weixin918666666 欢迎有兴趣的网友一起验证数据的准确性