Socket
Book a DemoInstallSign in
Socket

confirm-promise

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

confirm-promise

confirm command line

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

confirm

FAQs

Package last updated on 21 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts