sal-js-readline
v1.0.0
Published
A JavaScript module for reading and getting user input from the CLI
Maintainers
Readme
sal-js-readline
A JavaScript module for reading and accepting user input from the command-line interface.
Installation
npm install sal-js-readline
## Example Usage
import {getInput, closeInput} from "sal-js-readline";
async function main() {
const name = await getInput("What is your name?");
console.log(`Hello ${name}!`);
closeInput(); // closing the command-line interface
}