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-from-git-commits-generator

v1.0.21

Published

A simple module that generates a changelog in markdown from all your projects git commits

Readme

Changelog From Git Commits Generator

A simple module that generates a changelog in markdown from all your projects git commits

This project was influenced by https://github.com/lob/generate-changelog#readme

There are a ton of changelog generators out there and I tried many before decideing to create one. Where others failed fort was with accomodating Azure-DevOps repositories. The generators create links to issues (work items in devops) as well links to commits and tags and such. Most generators failed to create proper links for devops. Github, bitbucket, vsts, etc. use a different url and naming to access things in the repository. Also, a bit more control on what to write to the changelog seemed rational.

Structure

  • lib/git.ts gets all the git commit data from your repo.
  • lib/writer.ts generates the changelog contents and writes it to disk
  • lib/cli.ts generates the help and options avail on command line

Using

This will generate from all commmits in your repository. NOT JUST SINCE LAST TAG. There are plans to offer major, minor and patch flags to control wether to just append to the an existing file limited commits.

I had a difficult time figuring out how to display the current commits from the last tag to the current head so I ended up probing the version from the package.json and placing all commits from last known tag under the current version. This is where it got difficult for me to append to an existing changelog file since after we bump the version and make a new tag the commits previously put in the top of changlog would then need to be compared and possible moved if the tag was different.

Currently, the command is run from the post-commit git hook. This ensures that the changlog is always up to date.

The hook is registered via Husky. I dont know much about git or hooks but this seems to work well.

So far, there are links for a git repo that I tested with this repo in Github and also Azure DevOps formely known as Vsts. The links are quite a bit different between different source control providers but this was wrote for a vsts project. To provide links to such as issues or work items and commits or tags there is a constant object called links in the writer.ts file. Just determine the link format and add another section to provide links for another source control site. Also, add the repo type in the RepoType enum in the interfaces.ts file.

execute --help to see available options

if you dont like provided tons of command line arguments to configure the command, you can place a config section in your package.json or provid the configuration in a .changelog-from-git-rc file

package.json:

  "changelog-from-git": {
    "verbose": false,
    "version": "",
    "repoUrl": "",
    "repoType": "git",
    "file": "CHANGELOG.md",
    "projectName": "",
    "hideEmptyVersions": false,   
    "hideUnparsableCommit": false,
    "hideAuthorName": false,
    "hideFeatType": false,
    "hideFixType": false,
    "hidePerfType": false,
    "hideDocsType": false,
    "hideStyleType": false,
    "hideRefactorType": false,
    "hideTestType": false,
    "hideChoreType": false,
    "hideBreakingType": false,
    "hideBuildType": false,
    "hideCliType": false,
    "hideRevertType": false,  
    "hideOtherType": false
}

.changelog-from-git-rc:

{
    "verbose": false,
    "version": "",
    "repoUrl": "",
    "repoType": "git",
    "file": "CHANGELOG.md",
    "projectName": "",
    "hideEmptyVersions": false,   
    "hideUnparsableCommit": false,
    "hideAuthorName": false,
    "hideFeatType": false,
    "hideFixType": false,
    "hidePerfType": false,
    "hideDocsType": false,
    "hideStyleType": false,
    "hideRefactorType": false,
    "hideTestType": false,
    "hideChoreType": false,
    "hideBreakingType": false,
    "hideBuildType": false,
    "hideCliType": false,
    "hideRevertType": false,  
    "hideOtherType": false
}