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-generator-regex

v1.0.1

Published

Node CLI generating your changelog file, based on your commit messages.

Downloads

2

Readme

:star2: changelog-generator-regex :book:

A simple and fast Node.js CLI, generating a markdown changelog file with pretty sections.

Inspiration

Have you ever wanted to generate a changelog that fulfill your own needs ? Most of the time, the tools you find don't fit exactly your needs or are just too complex to start with.

changelog-generator-regex to the rescue !

This open source command line interface allow you to scrap your git log and catch what you need with "ready to go" regular expressions. Pssst ! It's customizable, enjoy ! :balloon: The CLI use default configuration and changelog files to speed up your experience. You are free to customize it to better match your needs.

Features:

  • Increment your project version in both your package.json and changelog file.
  • Customize your changelog generation with regular expressions:
    • Ignore all commits you don't want, example: "Merge branch into...".
    • Compute the number of commits per category.
    • Generate changelog only for the new commits you didn't "change-logged" yet.
    • Link the author of the commit.
    • Share your configuration accross any project.

Demo:

See the result example below

Installation:

with npm.

npm install --save-dev changelog-generator-regex
npm run changelog

with yarn.

yarn add --dev changelog-generator-regex
yarn changelog

Result example:

It starts next line:

Changelog

Each commit should match a regular expression:

  • /\[feat\]/ new feature
  • /\[chore\]/ maintain/improve existing features
  • /\[docs\]/ document anything related to the project
  • /\[fix\]/ correct a bug
  • /\[refactor\]/ improve code without changing behavior
  • /\[style\]/ format, add missing semi colons, fix linter warnings...
  • /\[test\]/ unit tests

---> Here is the next release entry point <---

[1.0.0] - 2019-09-01

feat: 6

new feature

  • allow npm run commands by @RemyMachado
  • allow commit ignore configuration by @RemyMachado
  • allow user to customize regular expressions from configuration file by @RemyMachado
  • scrap the version inside package.json instead of changelog.md by @RemyMachado
  • use esm to load script by @RemyMachado
  • create a draft script by @RemyMachado

chore: 3

maintain/improve existing features

  • prepare the package for publication by @RemyMachado
  • improve readability of the type descriptions by @RemyMachado
  • use package dependencies by @RemyMachado

docs: 4

document anything related to the project

  • create usage example .gif by @RemyMachado
  • update readme.md with placeholders by @Rémy Machado
  • upload readme.md illustration by @RemyMachado
  • comment the process guideline by @RemyMachado

fix: 2

correct a bug

  • version scrapping call by @RemyMachado
  • correct single digit overflow by @RemyMachado

refactor: 8

improve code without changing behavior

  • replace with new name (regex) by @RemyMachado
  • use constants for return codes by @RemyMachado
  • clean the main file of any other functions by @RemyMachado
  • use constants for print colors and version types by @RemyMachado
  • add helpers to modulate the features by @RemyMachado
  • externalize system functions by @RemyMachado
  • externalize user interactions by @RemyMachado
  • externalize string constants by @RemyMachado

style: 1

format, add missing semi colons, fix linter warnings...

  • enforce prettier on js files by @RemyMachado

untyped: 1

not recognized commit type

  • Initial commit by @Rémy Machado

It ends here

Contributing :bowtie:

Feel free to create issues or pull requests, your help is precious.

License :scroll:

MIT