confirm-promise
0.1.1 • Public • Published confirm-promise
A simple command-line tool to confirm
Install
$ npm install --save confirm-promise
Api
confirm(message [, chose] [, callback])
Example
var confirm = require('confirm-promise')
confirm('how are you', function(ok){
if(ok){
}
})
confirm('how are you')
.then(ok => {})
.catch(ok => {})
var ok = yield confirm('how are you');
var confirm = require('confirm-promise')
confirm('how are you', ['ok', 'cancel'] ,function(ok){
if(ok){
}
})
Package Sidebar
Install
Weekly Downloads