co-prompt
simple terminal user input 'co'
Last updated 6 years ago by tjholowaychuk .
MIT · Original npm · Tarball · package.json
$ cnpm install co-prompt 
SYNC missed versions from official npm registry.

co-prompt

Sane terminal user-input for nodejs that return thunks for co.

Installation

$ npm install co-fs

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

Current Tags

  • 1.0.0                                ...           latest (6 years ago)

1 Versions

  • 1.0.0                                ...           6 years ago
Downloads
Today 0
This Week 114
This Month 192
Last Day 6
Last Week 65
Last Month 424
Dependencies (1)
Dev Dependencies (3)
Dependents (787)

Copyright 2014 - 2017 © taobao.org |