Wanna test it along the article? simply npm install timestamp-cmd -g or check it out there timestamp-cmd.

Building

As a javascript developer I had never tried to build a command-line tool. I knew that was doable though. I came accross commander and that was it.

Commander helps you build the structure of your command-line tool by setting up flags and automatically parsing arguments.

You can then simply add functions and output the data you want depending on the parameters you got!