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

npm-test-kadian

v1.0.3

Published

this is a test package

Readme

npm-test-kadian

This is a test package

目录

  • lib

    • config
      • constants // 常量
      • repoMap // 仓库地址的映射
    • core
      • commands // 命令遍历
      • create // create 命令执行逻辑
      • help // --help 命令执行逻辑
    • utils
      • file.js
  • bin

    • cli.js // 入口
  • package.json

依赖

  • commander:命令行操作
  • download-git-repo:用于下载仓库
  • inquirer@8:交互
  • ora@4:可视加载

使用

    npm install npm-test-kadian

    test-cli init

npm 依赖包开发

    npm init -y -> npm login -> npm publish ->

local test

    npm link

发布包

  • npm config set registry https://registry.npmjs.org // 切换镜像

  • npm adduser // 添加或验证用户

  • username // 输入用户名

  • password // 输入密码(不要怀疑,在这里不管你有没有输入,光标都是不会动的,输入密码后按回车就可)

  • email // 输入邮箱

  • code // 邮箱会接收一个一次性密码,输入即可

  • npm login // 登录

  • npm adduser // 忘记要不要输入这个了 看着来

  • username

  • password

  • email

  • code

  • npm publish // 发布,如果有问题,就换个名称,在 package.json 中修改 name

  • npm config set registry http://registry.npm.taobao.org/ // 最后记得切换回来

更新包

  • npm version <update_type> // 类型有:major minor patch
  • npm publish

删除/废弃包 [https://blog.csdn.net/weixin_43602502/article/details/129665569]

  • 删除的版本 24 小时后方可重发

  • 只有发布 72 小时之内的包可以删除

  • npm unpublish [email protected] 删除某个版本

  • npm unpublish npm-test-kadian --force 强制删除整个包

  • npm unpublish [<@scope>/]@ // 删除某个版本

  • npm unpublish [<@scope>/] --force // 强制删除整个包

// https://www.cnblogs.com/sanhuamao/p/16626684.html

// https://www.cnblogs.com/yang-shun/p/16405968.html   脚本形式执行 node命令