This is an example project using a javascript command line interface (CLI) with node.js. I just wanted to figure out, how to work with cli parameters and input streams and here is the result...
node.js cli example of parsing crontab
Install npm dependencies
$ yarn
make it executable
$ chmod +x ./index.js
$ ./index.js 16:10 < crontab.example
or use npm task
$ yarn example
created and tested with:
- macOS High Sierra
v10.13.5
- node.js
v9.8.0
- npm
5.6.0