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

@x-drive/changelog

v1.1.6

Published

一个简单的 changelog 生成模块

Readme

Changelog 生成模块

通过使用 git log 命令获取提交记录并通过特征提取符合规则的记录生成项目 Changelog。因此需要使用该模块的仓库在提交 commit 的时候依照具体情况在 commit 前加入相应的 commit 类型。

支持的提交规范:

<提交类型>[(作用域)]: <提交描述>

目前支持记录的类型有 feat fix perf refactor build chore,支持在提交类型后声明作用域

  • feat: 新功能、新特性
  • fix: 修改 bug
  • perf: 更改代码,以提高性能
  • refactor: 代码重构
  • build: 影响项目构建或依赖项修改
  • chore: 其他修改(不在上述类型中的修改)

CHANGELOG.md 文件已存在,模块会将内容追加到文件头部

git log --no-merges --pretty=format:'%s [%h](${repositoryUrl}/commit/%H)' --abbrev-commit --date=relative

配置

目前只支持有 package.json 声明的项目

以下字段都在 package.json 文件中配置

  • version package.json 中声明项目版本的字段,该字段没配置会报错
  • changelog 模块配置字段
    • url 项目仓库地址,该地址没配置会尝试查找文件中 repository 字段中的 url 字段并处理成能用的数据
    • text 提交类型显示文本映射配置对象,目前支持 feat fix。该字段没配置时会显示类型名称

使用

  • 提交的 commit 至少有一条是以 feat:fix: 开头的
  • package.json 的 scripts 字段中增加对应的运行命令,如
    "changelog": "changelog"
  • 运行 npm 命令,如
    npm run changelog