spacetime-cal

0.0.1 • Public • Published
a CLI calendar
npm i -g spacetime-cal
by Spencer Kelly

The cal command is one of the earliest, and longest-lasting UNIX shell commands. It is beautiful.

This is just the same thing, basically. I've tried making it easier to hack, and nicer to look-at.

Thats's all.

image

Unix applications have a real aesthetic - here's how you can get the weeks to start on a Monday, using cal ¹-

cal | awk '{ print " "$0; getline; print " Mo Tu We Th Fr Sa Su"; \
getline; if (substr($0,1,2) == " 1") print "                    1 "; \
do { prevline=$0; if (getline == 0) exit; print " " \
substr(prevline,4,17) " " substr($0,1,2) " "; } while (1) }'

i mean,

spacetime-cal --monday

Options

Built with spacetime, compromise-dates, and Ink.

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i spacetime-cal

Weekly Downloads

3

Version

0.0.1

License

MIT

Unpacked Size

8.86 kB

Total Files

11

Last publish

Collaborators

  • spencermountain