List of libraries to build cool NodeJS command lines apps

1. Chalk Chalk is styling for the command line - add cool color and stuff. const chalk = require('chalk'); const log = console.log; log(chalk.blue('Hello') + ' World' + chalk.red('!')); log(chalk.green( 'I am a green line ' + chalk.blue.underline.bold('with a blue substring') + ' that becomes green again!' )); 2. Clear Clear the terminal screen if possible var clear = require('clear'); clear(); 3. Commander (minimist/nomnom/etc.) Argv on steroid - basically handle all the needs of of your cli parameters...

July 30, 2019 · 2 min · YS