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-md-helper

v1.1.0

Published

The changelog-md-helper is a tool for maintaining a changelog file for a software project. The library provides functions for setting the correct Semantic Versioning (SemVer) version on top of the changelog and sorting the entries within the file.

Downloads

4

Readme

changelog-md-helper

The changelog-md-helper is a tool for maintaining a changelog file for a software project. The library provides functions for setting the correct Semantic Versioning (SemVer) version on top of the changelog and sorting the entries within the file.

The library is designed to make it easy for developers to keep their changelog file organized and up-to-date, ensuring that the changelog accurately reflects the development history of the project.

By using this library, developers can save time and reduce the risk of manual errors when updating their changelog file.

Usage

Add changelog helper to your dependencies

npm install --save-dev changelog-md-helper
// or
yarn add --dev changelog-md-helper

Initialize config

npx changelog-md-helper --init

Add changelog helper as your package.json script

"scripts": {
    "changelog:release": "changelog-md-helper",
    "changelog:sort": "changelog-md-helper --sort-only"
}

Now you can use

yarn changelog:release
// or
yarn changelog:sort

Config (cmh-config.json)

You can find default values for changelog in default-config.json. Remember that default values will be used for all options that weren't set

  • vNextTemplate: This is the string template that will be used to replace it with the next version.

  • releaseTemplate: This is the string template that will be used to represent a released version, with $version_placeholder to be replaced by the version number and $date_placeholder to be replaced by the release date.

    • if your release header is e.g (v1.0.0) released 2023-03-03, then set your release header to (v$version_placeholder) released $date_placeholder
  • majorTemplate: This is the string template that will be used to find a major version change in the changelog.

  • minorTemplate: This is the string template that will be used to find a minor version change in the changelog.

  • patchTemplate: This is the string template that will be used to find a patch version change in the changelog.

  • useRegexInTemplates: This is a boolean value that indicates whether regular expressions can be used in the templates.

  • parseTemplatesToRegex: This is a boolean value that indicates whether the templates should be parsed as regular expressions.

  • dateFormat: This is a string that specifies the date format to be used in the releaseTemplate.

    • day.js is being used for handling date: https://day.js.org/docs/en/display/format
  • bumpMinorByMajor: This is a boolean value that indicates whether a minor version should be bumped when a major version is bumped.

  • bumpMinorByPatch: This is a boolean value that indicates whether a minor version should be bumped when a patch version is bumped.

  • sortChangelog: This is a boolean value that indicates whether the changelog should be sorted in a particular order.

  • changelogPath: This is a string that specifies the path to the changelog file.

  • displayExampleCommit: This is a boolean value that indicates whether an example commit should be displayed.

Options

  • [-so, --sort-only] option allows the user to sort the changelog without setting a new version header. This option is meant for situations where the user wants to reorganize the existing entries in the changelog, but does not want to release a new version.

  • [-i, --init] option allows the user to initialize default config.

Special thanks

  • ChatGPT for this readme.md :P