confirm-simple
v1.0.3
Published
A simple command-line tool to confirm
Downloads
1,308
Maintainers
Readme
confirm-simple
A simple command-line tool to confirm
Install
$ npm install --save confirm-simpleApi
confirm(message, [chose,] callback)Example
var confirm = require('confirm-simple')
confirm('how are you?', function(ok){
if(ok){ // ok is boolean
// I'm crazy
}
})
var confirm = require('confirm-simple')
confirm('how are you?', ['ok', 'cancel'] ,function(ok){
if(ok){ // ok is boolean
// I'm crazy
}
})

