1.0.2 • Published 6 years ago
console-input v1.0.2
console-input
A NodeJS input prompt for the console.
installation
npm install console-input --saveUsage:
input
let { input } = require('input');
const userInput = input('Enter Your Name: ');
console.log(userInput); let { print } = require('print');
print('Hello World!') // "Hello World!"Notes
The input function returns the info entered by the user and stores that info in userInput.
That's it. Very straightforward. Very simple. Great for folks just getting started.