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 🙏

© 2025 – Pkg Stats / Ryan Hefner

zfw-npm-study

v1.0.22

Published

zfw-npm-study scripts ...

Downloads

77

Readme

前言

参考文章

...

正文

推送组件

# 查询当前镜像源
npm get registry
# 配置官方镜像源
npm config set registry https://registry.npmjs.org/
# 配置淘宝镜像源(推荐,同步较快,一般几分钟就能拉取新包,不会超过一小时)
npm config set registry https://registry.npmmirror.com/

# 登录用户,发布前需要登录,登录会弹出浏览器页面登录
npm adduser

# 发布命令,需切换回官方源再执行推送指令
npm publish

依赖导入

npm i zfw-npm-study

执行bin文件

全局安装

# 全局安装指令,安装的命令名为 package.json bin里的key名而不是包名
npm install -g zfw-npm-study
# 运行指令
zfw-npm-study

临时执行(指定版本执行可以避免缓存问题)

npx zfw-npm-study
npx [email protected]