0.1.1 • Published 7 years ago

confirm-promise v0.1.1

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

confirm-promise

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

A simple command-line tool to confirm

image

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){ // ok is boolean
        // I'm crazy
    }
})

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){ // ok is boolean
        // I'm crazy
    }
})
0.1.1

7 years ago

0.1.0

7 years ago