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

changelog-patcher

v1.0.3

Published

A CLI tool to update CHANGELOG.md by moving unreleased changes to a new patched version.

Readme

Changelog Patcher

What This Is For?

This tool is designed to automate the process of updating your project’s changelog. It reads the CHANGELOG.md file and moves the content from the Unreleased section into a new release section, based on the version number defined in your package.json. The script performs several checks to prevent version conflicts, ensuring that the new version is higher than the most recent release and that the version doesn’t already exist in the changelog. It also resets the Unreleased section so that it’s ready for new changes.

Usage (CLI)

Ensure your project structure includes:

  • A package.json file with a valid version field.
  • A CHANGELOG.md file formatted with an Unreleased section and pre-defined category blocks (e.g., Added, Changed, Deprecated, etc.).

Run the script:

Execute the following command in your project’s root directory: node patchChangelog.js

This will:

  • Read the current changelog.
  • Verify and update the version based on your package.json.
  • Create a new release section with today’s date.
  • Reset the Unreleased section for future changes.

Output:

Upon successful execution, the script prints a message confirming the changelog update with the new version number.

Usage (package.json)

Using npm Scripts: You can also set up an npm script to run the changelog patcher easily. Add the following entry in the scripts section of your package.json:

  "scripts": {
    "patch-changelog": "changelog-updater"
  }
}

Test

The project includes automated tests to ensure that the changelog update works as expected and to catch version conflicts. The tests verify:

  • Correct Update: That unreleased content is moved to a new release section with the correct header and date.
  • Version Conflict Detection: That the script throws an error when the provided package version is already present or lower than the latest version in the changelog.

Running the Tests

Assuming you have Node.js installed, you can run the tests using:

npm run test