ripe
v0.2.1
Published
A simple node module that makes process dependencies easier.
Downloads
32
Readme
ripe
A simple node module that makes process dependencies easier.
Install
npm install --save ripe
Usage
ripe.wait(function () {
// ready!
});
// Could be in another process
setTimeout(function () {
ripe.ready();
}, 42);
The wait
method can be used either with a callback or a promise (or both, if you're brave enough).
ripe.wait(function () {
// ready!
});
ripe.wait().then(function () {
// ready!
});
You can configure the the port used by the websocket server with an optional object.
ripe.wait({ port: 420 }, function () {});
When your work is done, you only have to call the ready
function.
ripe.ready();
You can also give it an optional object and a callback or use the promise.
ripe.ready({ port: 420 });