Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

changelog

dylang1.2k1.4.2

Command line tool (and Node module) that generates a changelog in color output, markdown, or json for modules in npmjs.org's registry as well as any public github.com repo.

changelog, change log, commit messages, commits, changes, history, what's new, change set

readme

changelog NPM version Build Status

Command line tool (and Node module) that generates a changelog in color output, markdown, or json for modules in npmjs.org's registry as well as any public github.com repo.

changelog

Command-line Usage

Node Modules in NPM

Modules do not need to be installed to generate changelog but they must define their repository url in their package.json.

Example using Express

$ changelog {npm module name} [release] [options]

npm module: The module name, such as express, npm, grunt, etc.

Any Public Github.com Repository

Changelog also works on any public Github repo.

$ changelog {Github.com repo} [options]

Github.com repo url: Urls can be any format, such as https://github.com/dylang/changelog or `git@github.com:dylang/changelog.gitor even justdylang/changelog`.

Help

changelog --help

Usage:
  changelog <npm module name> [versions] [options]
  changelog <github repo url> [versions] [options]

Module name:
   $ changelog npm

Github repo:
   $ changelog github.com/isaacs/npm
   $ changelog isaacs/npm

Versions:
   latest   Default: Show only the latest versions. ex: $ changelog npm latest
   all      Show all versions.                      ex: $ changelog npm all
   number   Show that many recent versions.         ex: $ changelog npm 3
   n.n.n    Show changes for a specific version.    ex: $ changelog npm 1.3.11

Options:
  -c, --color            Output as Color (terminal default)
  -m, --markdown         Output as Github-flavored Markdown (file default)
  -j, --json             Output as JSON
  -d, --debug            Enable debugging
  -h, --help             Display help and usage details

More Examples

Changelog API

Changelog can be easily integrated into other tools.

`changelog.generate(name, versions)

  • name string, required NPM module name from registry.
  • versions integer or semver, optional Number of versions, or the semver version to show.
var changelog = require('changelog');

changelog.generate(NpmPackageName, countOrVersions)
    .then(changelog.markdown);
var changelog = require('changelog');

changelog.generate('grunt')
    .then(showChanges);

function showChanges(data) {

    //With npm each "version" corresponds to all changes for that build pushed on npm
    //With github each "version" is one GMT day of changes
    data.versions.forEach(function(version) {
        console.log(version.version); //currently npm projects only
        console.log(version.date);    //JS Date

        //version.changes is an array of commit messages for that version
        version.changes.forEach(function(change) {
            console.log(' * ' + change);
        });
    });

    //Information about the project
    console.log(data.project);
}

How it works

  • Changelog uses npmjs.org API to get the list of versions and the publish dates.
  • It cross-references the versions in npm with the commit history from the Github's API.

Inspiration

Dylan Greene built this because he was always curious what was changed when doing npm update. This module's name is inspired by listening to TheChangelog Podcast on the way to work.

About the Author

Hello fellow developer! My name is Dylan Greene. When not overwhelmed with my two kids I enjoy contributing to the open source community. I'm a tech lead at Opower. I lead a team using Grunt and Angular to build software that successfully helps people like us use less power. Not too long ago I co-created Doodle or Die, a hilarious web game with millions of doodles that won us Node Knockout for the "most fun" category. I'm dylang on Twitter and other places.

Some of my other Node projects:

Name Description Github Stars Npm Installs
grunt-notify Automatic desktop notifications for Grunt errors and warnings using Growl for OS X or Windows, Mountain Lion and Mavericks Notification Center, and Notify-Send. 798 36,294
grunt-prompt Interactive prompt for your Grunt config using console checkboxes, text input with filtering, password fields. 244 5,804
shortid Amazingly short non-sequential url-friendly unique id generator. 262 8,357
rss RSS feed generator. A really simple API to add RSS feeds to any project. 243 15,147
npm-check Check for outdated, incorrect, and unused dependencies. New! 1,164
xml Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples. 56 21,139
logging Super sexy color console logging with cluster support. 24 541
grunt-attention Display attention-grabbing messages in the terminal New! 6,253
observatory Beautiful UI for showing tasks running on the command line. 31 3,516
flowdock-refined Flowdock desktop app custom UI New! 59
anthology Module information and stats for any @npmjs user New! 216
grunt-cat Echo a file to the terminal. Works with text, figlets, ascii art, and full-color ansi. New! 102

This list was generated using anthology.

License

Copyright (c) 2014 undefined, contributors.

Released under the MIT license.

Screenshots are CC BY-SA (Attribution-ShareAlike).


Generated using grunt-readme with grunt-templates-dylang on Monday, October 6, 2014. Bitdeli Badge Google Analytics

changelog

1.4.0 / 2017-07-08

  • Use github-url-from-git for repo parsing (#37)

1.3.1 / 2017-07-07

1.3.0 / 2017-06-12

  • Add np
  • Return sha with commits

1.2.1 / 2017-06-12

  • Fix filename for example markdown (#30)
  • Revert q to 1.x (#28)

    Although q has released 2.0.0 - 2.0.3, the author writes on the GitHub repo:

    The version 2 release train introduces significant and backward-incompatible changes and is experimental at this time.

    Hence, reverting to 1.4.1.

1.2.0 / unpublished?

  • Upgrade and pin dependencies (#27) & devDependencies (#26)
  • Closes #20
  • Closes #16
  • Closes #13

1.1.0 / unpublished?

  • Use GITHUB_TOKEN if present (#24)
  • TravisCI: use versions 4 and 6 (#25)
  • Add .editorconfig (#23)

1.0.8 / unpublished?

  • Support scoped npm dependencies (#21)
  • Fixes #18

1.0.7 / 2014-10-06

  • Oops, took out q. It's back now.

1.0.6 / 2014-10-06

  • Fixes for supporting invalid semver versions and out of order publishes. Fixes #9.

1.0.5 / 2014-04-07

  • updated examples
  • update dependencies
  • fix main, update readme
  • update changelog

1.0.4 / 2014-01-24

  • update dependencies
  • Uppercase changelog
  • add json example
  • bump version
  • adding grunt-readme
  • Merge pull request #7 from rimunroe/master added User-Agent header to github API request
  • added User-Agent header to GitHub API request

1.0.3 / 2013-09-22

  • more modularization and testing
  • add grunt task

1.0.2 / 2013-09-20

  • renaming readme
  • update help
  • update readme
    • updated readme

1.0.1 / 2013-09-20

    • fix some bugs in the command line script
    • update readme
    • update help
    • update examples
  • show error message when github api rate limiting is enabled

1.0.0 / 2013-09-20

  • more refactoring, update tests
  • added .travis.yml. fixed TTL problem that made it not work in modern versions of Node. Fixes #3. updated npm registry api url. added tests. updated readme. changed from using step to q.
  • let the author know

0.1.3 / 2011-11-21

  • bump version, ignore TTY.getWindowSize if it's not working.
  • fix bug when author doesn't include repo. make work in node 0.6.*

0.1.2 / 2011-08-26

  • version bump to 0.1.2
  • added support for showing specific releases via latest, n, and n.n.n based on Tjholowaychuk's request. Closes #2

0.1.1 / 2011-08-24

  • updated examples and version
  • fixed regex for replacing github ticket numbers with url to the ticket so it wouldn't blindly match #.

0.1.0 / 2011-08-23

  • update changelog
  • update version
  • show the author's name if the repo url is not in the module's package.json.
  • fix exception that happens when a module isn't found
  • clean up readme
  • fix screenshot urls
  • updated examples and added screenshots

0.0.9 / 2011-08-23

  • update version
  • update examples
  • show full url to to github issue on command line output

0.0.8 / 2011-08-16

  • updated version
  • updated examples
  • don't include ansi color codes when outputting to a file or pipe

0.0.7 / 2011-08-10

  • upped version
  • added changelog for changelog
  • run changelog in the root of a node project with a package.json and it will use it to create the changelog.

0.0.6 / 2011-08-07

  • bumped version to 0.0.6
  • added lots of examples
  • added --color output (new default)
  • get debug output via --debug

0.0.5 / 2011-08-05

  • up version
  • handle better npm's api not being available wrap text using the screen width via tty
  • remove node_modules from git project

0.0.4 / 2011-08-04

  • update version to 0.0.4
  • using issac's semver to compare module version numbers
  • update readme

0.0.3 / 2011-08-04

  • update readme
  • support upcoming features that are in github but not yet in npm.
  • up to 0.0.3
  • --json support
  • update description

0.0.2 / 2011-08-04

  • version 0.0.2
  • use standard out and standard error for output. don't bubble exceptions or repeat error messages.

0.0.1 / 2011-08-01

  • First commit