Skip to content
Node module for accumulating events and running scripts accordingly.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.editorconfig
.gitignore
LICENSE
README.md
index.js
package.json

README.md

node-checkpoints

Node module for accumulating events and running scripts accordingly.

Installation

npm install node-checkpoints

Usage

  var checkpoints = new Checkpoints(callback, 2000);
  checkpoints.addEvents(['event1', 'event2']);
  checkpoints.addAssets('http://www.domain.tld/some/image.jpg');
  checkpoints.execute();
  checkpoints.markComplete('event1');
  checkpoints.markComplete('event2');
  // image.jpg finished loading meanwhile
  // -> callback is triggered.

Tests

npm test
You can’t perform that action at this time.