Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

confirm-simple

noyobo985MIT1.0.3

A simple command-line tool to confirm

confirm, cli, confirm-cli, simple, prompt

readme

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