0.0.4 • Published 9 years ago

synchronous-user-input v0.0.4

Weekly downloads
457
License
MIT
Repository
github
Last release
9 years ago

Offers a function to read user input synchronously from the command line.

Example:

var query = require('synchronous-user-input');

var name = query('please enter your name: ');
console.log("hello, " + name + "!");

var aNumber = query('please enter a number: ');
console.log('you entered: ' + aNumber);

var anotherNumber = query('please enter another number: ');
console.log('you entered: ' + anotherNumber);

console.log('the sum of these two numbers are: ' + (aNumber + anotherNumber));
0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago