Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

confirm-simple

1.0.3 • Public • Published

confirm-simple

npm version npm download

NPM

A simple command-line tool to confirm

Install

$ npm install --save confirm-simple

Api

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
    }
})
 

Install

npm i confirm-simple

DownloadsWeekly Downloads

900

Version

1.0.3

License

MIT

Last publish

Collaborators

  • avatar