Node Quick CLI
Node Quick CLI is a Node npm library for implementing CLI in node projects and it is lightweight.
Installation
Use the package manager npm to install Quick CLI.
npm install node-quick-cli
Usage
//import library
import readline from 'node-quick-cli';
//create single object
var readlineq = new readline();
//use it anywhere in file
(async () => {
console.log(await readlineq.question('question 1 : '));
// with background color
console.log(await readlineq.question('Question 2 : ',{bgcolor:"bgMagenta"}));
// with forground color
console.log(await readlineq.question('Question 3 : ',{color:"blue"}));
//exit process
readlineq.close();
})();
With colour
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.