ripe

0.2.1 • Public • Published

ripe Used by

Build Status Coverage Status Dependency Status Code Climate

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 });

/ripe/

    Package Sidebar

    Install

    npm i ripe

    Weekly Downloads

    4

    Version

    0.2.1

    License

    MIT

    Last publish

    Collaborators

    • apercu