npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

node-checkpoints

1.0.0 • Public • Published

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

install

npm i node-checkpoints

Downloadsweekly downloads

0

version

1.0.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability