Skip to content
This repository has been archived by the owner on Feb 11, 2019. It is now read-only.
/ cli-cal Public archive

[DEPRECATED] Github-like calendar graph for the command line

License

Notifications You must be signed in to change notification settings

fnogatz/cli-cal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

[DEPRECATED] Github-like calendar graph for the command line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages