memory-waffle
v0.1.0
Published
dead simple command-line interface apps
Downloads
10
Readme
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
})