repl-promised

0.1.0 • Public • Published

repl-promised

Make any Node.js REPL support promises (Promises/A+).

Usage

Either use one of the included "node-promised" or "coffee-promised" executables, or setup your own REPL:

var repl = require("repl"); var promisify = require("repl-promised").promisify; promisify(repl.start({}));

Commands that return promises will delay printing until the promise is resolved:

Q.delay(1000).then(function() { return "output after 1 second!"; }) 'output after 1 second!'

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1,562
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1,562

Package Sidebar

Install

npm i repl-promised

Weekly Downloads

1,562

Version

0.1.0

License

BSD

Last publish

Collaborators

  • tlrobinson