tj / Co Prompt
sane terminal user-input for node.js using thunks / generators
Stars: ✭ 196
Programming Languages
javascript
184084 projects - #8 most used programming language
co-prompt
Sane terminal user-input for nodejs that return thunks for co.
Installation
$ npm install co-prompt
Examples
var name = yield prompt('username: ');
var pass = yield password('password: ');
var desc = yield multiline('description: ');
var ok = yield confirm('are you sure? ');
API
prompt(msg)
Prompt for user input with msg
.
prompt.password(msg, [mask])
Prompt for password input with msg
and optional mask
defaulting to "*".
prompt.multiline(msg)
Prompt for multi-line input with msg
.
prompt.confirm(msg)
Prompt for confirmation with msg
.
License
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].