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

Package detail

njs-stats

cdriscol2MIT0.0.2

Gather NodeJS project statistics over time using git history.

readme

njs-stats

Gather NodeJS project statistics over time using git history.

Stats collected (per file) include:

  • LOC data (comments, source, empty, etc)
  • Count of requires
  • Count of jasmine expects
  • Count of expects

To-do:

  • Count of exported functions/objects
  • Ignore expects in xdescribe/xit's

Using njs-stats

$ njs-stats --help

With gitlog history

You can pass the --gitlog (-g) option which will walk backwards through your git history up to 12 months and collect the same stats from the last commit made each month.

Developing

Mostly taken from here.

Install dependencies

$ npm install

Install module globally

$ npm install -g
$ npm link