This package has been deprecated

Author message:

Deprecated; Use https://github.com/IonicaBizau/cli-gh-cal instead

cli-cal

1.0.6 • Public • Published

cli-cal

Github-like calendar graph for the command line.

Deprecated: Use cli-gh-cal instead.

This module has been created as an extract of git-stats. In the meantime (#49) Ionică Bizău created the standalone package cli-gh-cal which should be used instead of this package.

Screenshot

Installation

npm install -g cli-cal

Usage

Simply specify a list or object of entities:

echo '[["2013/07/30",2],["2013/08/31",4],["2013/11/11",3],["2014/03/01",2]]' | cli-cal
 
echo '{ "2013/07/30": 2, "2013/08/31": 4, "2013/11/11": 3, "2014/03/01": 2 }' | cli-cal

The given entities can be of any range and floats too. They will be normalized and mapped to five levels.

For example you can pipe clocker's output into cli-cal after some json magic:

clocker data | \
  json -a hours | \
  json -e 'this.n = [[this.date.replace(/-/g,"/"),this.hours]]' -a n | \
  json -g | \
  cli-cal

Credits

Most of the module is a generalized extract of git-stats by Ionică Bizău.

Package Sidebar

Install

npm i cli-cal

Weekly Downloads

0

Version

1.0.6

License

MIT

Unpacked Size

22.7 kB

Total Files

6

Last publish

Collaborators

  • fnogatz