🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

chlog

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chlog

auto-generate a markdown changelog from git commit history

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

chlog

autogenerate a changelog from git metadata

installation

requires: node, npm

npm i -g chlog

usage

This is intended to be used as a cli tool to list the github PRs between the current git HEAD and the last tag (release).

from a git directory:

$ chlog

Generates output that looks like:

* [PR #23](https://github.com/jden/foo/pull/23) - Bump to some-dep@1.3.8
* [PR #22](https://github.com/jden/foo/pull/22) - Update documentation to add gifs

super awesome workflow

You can automatically prepend new changes onto the changelog by adding this preversion script to your package.json:

{
"preversion": "mv changelog.md changelog.old && echo \"## $npm_package_version\" >> changelog.md && echo >> changelog.md && chlog >> changelog.md && cat changelog.old >> changelog.md && rm changelog.old && git add changelog.md"
}

Then you can npm version major|minor|patch like normal and update your changelog in one command and one commit.

You can install this script in your package.json by running chlog --install or chlog -i

contributing

Pull requests and issues welcome. Follow the nodejs code of conduct.

license

copyright MMXV jden jason@denizac.org. available under ISC license.

Keywords

changelog

FAQs

Package last updated on 19 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts