0.1.0 • Published 9 years ago
read-multiple v0.1.0
read-multiple
For reading multiple user inputs from stdin.
Uses read by isaacs for input and supports all of the features provided by the library.
USAGE
var readMultiple = require('read-multiple');
readMultiple(options, callback);
The callback is called with the first argument as an error and the rest of the
arguments as the user input in the order provided in options
. Each argument
will consist of an object in the following form:
{
value: "User Input", // The user's input
isDefault: false // Whether or not the default value was used
}
value
is the user input.isDefault
is whether or not the default was specified (see the read documentation for more information).
OPTIONS
Options consists of an array (or object) of options for read
. See the
read documentation for more information.
The order of the keys in the options object provided will be used as the order of the arguments in the callback.
0.1.0
9 years ago