confirm-simple
A simple command-line tool to confirm
Last updated 10 years ago by noyobo .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install confirm-simple 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.3                                ...           latest (10 years ago)

4 Versions

  • 1.0.3                                ...           10 years ago
  • 1.0.2                                ...           10 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE