angelabilities-prompt
a simple quick & dirty command line prompt
Last updated 5 years ago by outbounder .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install angelabilities-prompt 
SYNC missed versions from official npm registry.

angelabilities-prompt

a simple quick & dirty command line prompt

usage

module.exports = function(angel){
  require("angelabilities-prompt")(angel)
  
  angel.on("prompt me", function(){
    angel.prompt("please provide feedback", function(err, response){
      // typeof response == "string"
    })
  })
  
  angel.on("prompt me several times", function(){
    angel.prompt( [
      "please provide feedback 1",
      "please provide feedback 2"
    ], function(err, responses){
      // Array.isArray(responses) == true
    })
  })
}

Current Tags

  • 0.0.2                                ...           latest (5 years ago)

2 Versions

  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |