Nonchalantly Performs Magic
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    confirm-simplepublic

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

    install

    npm i confirm-simple

    Downloadsweekly downloads

    246

    version

    1.0.3

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar