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 🙏

© 2026 – Pkg Stats / Ryan Hefner

zhejiang-id-prefix

v1.0.1

Published

浙江省所有区县身份证前6位行政区划代码查询工具(含历史旧代码)

Readme

zhejiang-id-prefix

查询浙江省所有区县的身份证前 6 位行政区划代码(含历史旧代码)。

命令行使用

# 列出所有区县
npx zhejiang-id-prefix list

# 按名称或代码搜索
npx zhejiang-id-prefix search 萧山
npx zhejiang-id-prefix search 杭州 --json

# 精确查询代码(含历史旧代码)
npx zhejiang-id-prefix code 330109
npx zhejiang-id-prefix code 339005

# 列出所有地级市
npx zhejiang-id-prefix cities

作为 Claude Code Skill 使用

在项目中安装后,Claude 可以自动调用此工具查询浙江区县代码。

安装 Skill

npx skills add SkyWongHZ/zhejiang-id-prefix

国内网络访问 GitHub 可能超时,可改用手动安装:

npm install zhejiang-id-prefix
cp -r node_modules/zhejiang-id-prefix/skills/zhejiang-id-prefix .claude/skills/

安装后重启 Claude Code,即可直接用自然语言提问,例如:

  • "萧山区的身份证前 6 位是多少?"
  • "330109 对应哪个区县?"
  • "杭州市所有区县的代码"

覆盖范围

11 个地级市,90+ 区县,含历史旧代码映射(如萧山 339005 → 330109)。

| 城市 | 区县数 | |---|---| | 杭州市 | 13 | | 宁波市 | 10 | | 温州市 | 12 | | 嘉兴市 | 7 | | 湖州市 | 5 | | 绍兴市 | 6 | | 金华市 | 9 | | 衢州市 | 6 | | 舟山市 | 4 | | 台州市 | 9 | | 丽水市 | 9 |

License

MIT