Skip to content

balthazar/ripe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple node module that makes process dependencies easier.

Resources

Stars

Watchers

Forks

Packages

No packages published