0.1.0 • Published 9 years ago
memory-waffle v0.1.0
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
})