New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cli-cal

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-cal

Github-like calendar graph for the CLI

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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.

Keywords

FAQs

Package last updated on 03 Aug 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc