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

git-release-generator

v1.0.0

Published

Simple and flexible cli to generate release notes from git commit history

Downloads

3

Readme

git-release-generator

A simple and flexible cli to help you generate release notes

Features

  • Customizable
  • Light and fast
  • Easy to use

Installing

Install globally with:

$ npm install -g git-release-generator

Example usage

To generate a notes, you must in a local git repo. Then simply run this:

$ gitregen 

It'll use default option to generate the notes. The default output is similar to denoland/deno releases.

You can customize the output with specifying the template, for example I'm gonna use nodejs/node releases. The usage should look like this:

$ gitregen -uo -s 10 "[{hash}] - {subject} ({author})"

And will generate md file with this content:

### unreleased / 2021-01-14

- [42aedc5b17] - fix: allow generate for repo that doesn't have any tag (Cudiph)
- [b7a12f1176] - Initial commit (Cudiph)

Option Explained

For reference i will use my node-gtrans repo at v1.4.0 to v1.3.2

With using default options then the output look like this:

### v1.4.0 / 2021-01-02

- 1.4.0 ([8895905](linkToCommit)
- chore: update example.js ([213477d](linkToCommit)
- fix: let user handling the error themselves ([912cd21](linkToCommit)

### v1.3.2 / 2021-01-01

- 1.3.2 ([0d5be5f](linkToCommit)
- Merge branch 'master' of https://github.com/Cudiph/node-gtrans ([a90a303](linkToCommit)
- docs(readme): Fix typo ([a11e484](linkToCommit)
  • -i, --ignore - Accept regex as an argument, will skip a commit if the commit subject match the regex pattern.
    With $ gitregen -i "\d\.\d\.\d":

    ### v1.4.0 / 2021-01-02
    
    - chore: update example.js ([213477d](linkToCommit)
    - fix: let user handling the error themselves ([912cd21](linkToCommit)
    
    ### v1.3.2 / 2021-01-01
    
    - Merge branch 'master' of https://github.com/Cudiph/node-gtrans ([a90a303](linkToCommit)
    - docs(readme): Fix typo ([a11e484](linkToCommit)
  • -l, --level - Only generate specified tag release from newest to oldest tag.
    With $ gitregen -l 1:

    ### v1.4.0 / 2021-01-02
    
    - 1.4.0 ([8895905](linkToCommit)
    - chore: update example.js ([213477d](linkToCommit)
    - fix: let user handling the error themselves ([912cd21](linkToCommit)
  • -s, --slice-hash - Number of hash digit to be shown
    With $ gitregen -s 10:

    - chore: update example.js ([213477d540](linkToCommit)
  • -c, --no-convention - Remove convention type in commit message, if the subject is "docs(readme): update README.md" then the output will be "update README.md"
    With $ gitregen -c:

    - update example.js ([213477d](linkToCommit)
  • -o, --only-hash - Remove hash linking if you're using github or gitlab in origin remote.
    With $ gitregen -o:

    - chore: update example.js (213477d)
  • -u, --unreleased - Newest commits that has not been tagged will be included. Example is at Example Usage.

See also

  • https://medium.com/better-programming/create-your-own-changelog-generator-with-git-aefda291ea93
  • https://github.com/axetroy/vscode-changelog-generator