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

nbc-auto-changelog

v1.1.2

Published

一键生成 CHANGELOG.md 工具,基于开源项目 auto-changelog

Readme

nbc-auto-changelog

用于从 git 标签和提交历史生成更改日志的命令行工具

修改自 auto-changelog

Latest npm version

介绍

安装

npm -g install nbc-auto-changelog  // 全局使用

或者

npm install nbc-auto-changelog -D  // 作为开发环境依赖使用

最基本的使用方法

首先编辑 package.json,加入 version 运行脚本命令

{
    "scripts": {
      "version": "nbc-auto-changelog -p && git add CHANGELOG.md"
    }
}

最后终端输入

npm version [新版本号]

就可以实现 package.json 里的 version 版本自动更新,然后 CHANGELOG.md 会自动生成,并为当新版本 version 生成一个新 标签(tag)

具体其他使用方法配置auto-changelog 原版本相同,这里不再赘述,值得注意的只有两点:

  1. 最好填写 git 远程仓库名,不然没法链接到 commitissue 等超链接

  2. git 最好设置的是 GitHub 用户名,否则 @NiButCrazy 这类超链接无效

    设置方法: git config --gloabl user.name "GitHub 用户名"

[!IMPORTANT] 主要是讲解一下我个人修改的内容和注意事项:

  1. 汉化了--help 命令的内容,并且为大部分命令添加了终端颜色,更加清晰有条理

  2. 将默认模板更换为了 conventional,然后又针对 conventional 模板又进行了魔改

    [!WARNING] 这个模板未经过测试,可能会有小 BUG,而且目前里面的 issuecommit hashauther 超链接只支持 GitHub 比如 #11e6cc494@NiButCrazy 啥的

模板规范

只针对默认模板

[!TIP] 然后就是默认模板的 git 提交消息规范和说明,点我查看详情

先说一般情况,比如一个关键字 feat,你可以选择 feat | Feat | feat(scope),其中关键字 feat 只有首字母不区分大小写,scope 指的是本次commit的作用范围,这个自己觉得合理就行了。然后就是issue部分,如果想引用 issue 超链接就必须加个括号(),比如 (#11) ,以下是一个提交消息的例子

Feat(window): 增加了一个无边框窗口切换选项 (#521)

man: 牢大! (#520)
孩子们我坠机了

close #521  // 这是可选项,遵循 GitHub 自己的规范,链接 议题 或 issue 或 pull 用的

关键字列表

[!NOTE] 有顺序区别,用作 changelog 的排序依据

  • breaking | change - :rotating_light:重大更改(也可以理解为破坏性更改)
  • feat - :sparkles:新功能
  • fix - :bug:修复
  • chore - :package:杂项
  • docs - :book:文档
  • refactor - :recycle: 重构
  • test - :mega: 测试
  • style - :books: 样式
  • build - :wrench: 依赖 | 构建
  • perf - :zap: 优化
  • ci - :hammer: CI / CD
  • i18n - :globe_with_meridians:: 国际化
  • 啥关键词都不填 - :cyclone: 整体修改