🚀 DAY 2 OF LAUNCH WEEK: Announcing Socket Certified Patches: One-Click Fixes for Vulnerable Dependencies.Learn more
Socket
Book a DemoInstallSign in
Socket

hanul-co-prompt

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hanul-co-prompt

simple terminal user input 'co'

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

terminal

FAQs

Package last updated on 18 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts