memory-waffle

dead simple command-line interface apps


Keywords
readline, cli, waffles, apps, nodejs
License
ISC
Install
npm install memory-waffle@0.0.0

Documentation

memory-waffle

mw accepts a ready callback of the signature function(prompt) {}. omitting this callback will call interface#prompt for you.

var mw = require('memory-waffle')

mw({
  frobnicate: function(a, b, done) {
    foobar(a, b)
    done()
  }
}, '$ ', function(prompt) {
  // maybe you need to do something to set up?
  // invoke `prompt` when you're ready to begin
})