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

vjj

v1.0.11

Published

一个简单的 npm 包版本更新 🔧 就是 `npm version` 的再 📦

Readme

Version Judgment Juggler (vjj ,版本智能预测)

version issues 提交

📦 安装

npm install  vjj --save-dev

📖 使用

# 原包为 0.0.0
npx vjj -id aa # 使用预发布 preid => 0.0.1-aa.0
npx vjj -b # 使用 `npm run build` 开启打包测试
# v0.3.0 移除了 -u 子选项
# npx vjj -u # 使用 `npm update --save` 更新依赖包
npx vjj -p # 使用 `npm publish` 推送 npm 包

💡 注意

在包本地版本与 npm 版本不一致时,会显示一个版本不同的提示,但该提示不会影响后续的操作。该提示是采用本地的项目的 package.json 中的项目名与 npm 上的同名版本号进行比较,如果不一致,则会显示该提示。所以,可能有误。

可以使用 -nd (--no-diff) 选项来忽略该提示。除非显式的设置 -nd=false,否则设置了该选项其默认值为 true。但不设置该值时,默认展示该提示。

# 不携带 `-nd` 选项时,值默认为 false
npx vjj
# 使用全拼禁止获取线上同名 npm 包信息,值为 true
npx vjj --no-diff
# 使用缩写禁止获取线上同名 npm 包信息,值为 true
npx vjj -nd
# 携带非 `false`  ,下面的情况都认定值为 true
npx vjj -nd=true
npx vjj -nd true
npx vjj -nd=0
npx vjj -nd 0
npx vjj -nd=1
npx vjj -nd 1
npx vjj -nd='a'
npx vjj -nd 'a'
# 下面的值同不适用 `-nd` 选项
npx vjj -nd=false
npx vjj -nd false

写入 CHANGELOG.md

每一次更新版本号后还要写更新日志,还需要打开 CHANGELOG.md 文件,然后再去找当前版本号,当前日期 📅,累之久矣。 现在默认添加会将 npx version xxx --no-git-tag-version 的返回值添加到 CHANGELOG.md 文件 🀄️。

# 不携带 `-nc` 选项时,值默认为 false
npx vjj
# 使用全拼禁止获取线上同名 npm 包信息,值为 true
npx vjj --no-changelog
# 使用缩写禁止获取线上同名 npm 包信息,值为 true
npx vjj -nc
# 携带非 `false`  ,下面的情况都认定值为 true
npx vjj -nc=true
npx vjj -nc true
npx vjj -nc=0
npx vjj -nc 0
npx vjj -nc=1
npx vjj -nc 1
npx vjj -nc='a'
npx vjj -nc 'a'
# 下面的值同不使用 `-nc` 选项
npx vjj -nc=false
npx vjj -nc false

除非你像设定 -nd 选项一样,初显式设置 -nc=false,否则携带 --nc=xx--nc xx 都认定为 true,即更新后不写入 CHANGELOG.md 文件。

📄 文档地址

参看 vjj