A simple command-line tool to confirm
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
README.md
package.json

README.md

confirm-simple

npm version npm download npm engines build status Coverage Status npm dependencise

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