Make any Node.js REPL support promises (Promises/A+).
JavaScript
Latest commit 8978f22 Nov 27, 2015 @tlrobinson Merge pull request #1 from udnisap/fixed-repl-suggessions
Handled the auto completes on the repl.
Permalink
Failed to load latest commit information.
bin Initial commit, v0.1.0 Jun 28, 2013
.gitignore Initial commit, v0.1.0 Jun 28, 2013
README.md Initial commit, v0.1.0 Jun 28, 2013
index.js suggestion and executions sperated Nov 25, 2015
package.json Initial commit, v0.1.0 Jun 28, 2013

README.md

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!'
>