$ npm install confirm-simple
A simple command-line tool to confirm
$ npm install --save confirm-simple
confirm(message, [chose,] callback)
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
}
})
© 2010 - cnpmjs.org x YWFE | Home | YWFE