Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
中国省、市、区数据(含港澳台)
pca.js
和 pcaa.js
,前者仅包含省市数据,后者包含省市(县)区数据增加广东省中山市和东莞市的区镇数据(参考京东 pc 端的地区选择)
增加港澳台数据(参考京东 pc 端的地区选择),v3之后不再提供或更新街道数据
v2版本中,data.js
中不再包含街道数据,以减小打包体积。格式化的街道数据单独存放在 street.js
中,单独暴露全局变量 STREETS
。可通过该CDN链接单独引入,或者下载该文件自行引入。
v1版本中,data.js
包含省市区以及街道数据。
Install the pkg with npm:
npm install area-data --save
or yarn
yarn add area-data
or bower
bower install area-data
// v5之前的版本
import AreaData from 'area-data';
// v5及之后的版本
import { pca, pcaa } from 'area-data';
// 可以根据需要按需引入:
import PCA from 'area-data/pca';
import PCAA from 'area-data/pcaa';
pca['86'] // 等同于 AreaData['86']
// 所有省份:{'110000': '北京市', '120000': '天津市', '130000': '河北省', ...}
pcaa['130000'] // 等同于 AreaData['130000']
// 对应省份的所有城市:{'130100': '石家庄市', '130200': '唐山市', '130300': '秦皇岛市', ...}
pcaa['130200'] // 等同于 AreaData['130200']
// 对应市的所有县区:{'130201': '市辖区', '130202': '路南区', '130203': '路北区', ...}
### v1
AreaData['130202']
// 对应县区的所有街道:{'130202001000': '学院南路街道', '130202002000': '友谊街道', ...}
官方数据(截止到2016.07.31): 城乡区域划分
数据来源: 最新省市区数据来自 area-puppeteer.
MIT
FAQs
中国省、市、区数据(含港澳台)
The npm package area-data receives a total of 204 weekly downloads. As such, area-data popularity was classified as not popular.
We found that area-data demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.