node-quick-cli

1.1.7 • Public • Published

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.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i node-quick-cli

Weekly Downloads

0

Version

1.1.7

License

MIT

Unpacked Size

2.6 kB

Total Files

3

Last publish

Collaborators

  • haripatel96