console-input

1.0.2 • Public • Published

console-input

A NodeJS input prompt for the console.

installation

npm install console-input --save

Usage:

input

let { input } = require('input');

const userInput = input('Enter Your Name: ');

console.log(userInput);  

print

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.

enjoy!

Readme

Keywords

none

Package Sidebar

Install

npm i console-input

Weekly Downloads

9

Version

1.0.2

License

ISC

Unpacked Size

1.1 kB

Total Files

3

Last publish

Collaborators

  • austin_beaufort