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 🙏

© 2024 – Pkg Stats / Ryan Hefner

changelog-splitter

v1.0.1

Published

✂️ conventional commit changelog markdown splitter 约定式提交更新日志 markdown 切割器

Downloads

15

Readme

changelog-splitter

✂️ conventional commit changelog markdown splitter 约定式提交更新日志 markdown 切割器

code-review dependency-review Codacy Badge Codacy Badge npm version

使用

npm install -D changelog-splitter

假设有一个很长的 CHANGELOG.md,包含了从 1.x 到 4.x 的所有版本信息:

# 更新日志

## v4.x.x

...中间有 4.x - 1.x 的版本信息

# 1.x.x

同目录必须有 package.json 文件,其内容为:

{
  "name": "my-project",
  "version": "4.5.6"
}
changelog-splitter

执行过程中打印如下:

正在进行更新日志文件切割...

解析 [========================================] 100%
引用 [========================================] 100%

更新日志文件变化情况如下(删除标记“-”的文件需要手动删除):
~ CHANGELOG.md
+ changelogs/v1.x-CHANGELOG.md
+ changelogs/v2.x-CHANGELOG.md
+ changelogs/v3.x-CHANGELOG.md

更新日志切割成功

此时的 CHANGELOG.md 里内容如下:

# 更新日志

## v4.x.x

...中间只有 4.x 的版本信息,根据 package.json 里的版本号决定

## 其他版本的更新日志
- [v3.x](changelogs/v3.x-CHANGELOG.md)
- [v2.x](changelogs/v2.x-CHANGELOG.md)
- [v1.x](changelogs/v1.x-CHANGELOG.md)

链接