Sha256: 784285ba5baf0705a8733b04090ac6f5fc03e54137c1532e1950c780b0d9228f

Contents?: true

Size: 221 Bytes

Versions: 86

Compression:

Stored size: 221 Bytes

Contents

var throttle = require('./');

function onprogress(n) {
  console.log('progress %s%', n);
}

onprogress = throttle(onprogress, 500);

var n = 0;
setInterval(function(){
  if (n >= 100) return;
  onprogress(n++);
}, 50);

Version data entries

86 entries across 79 versions & 3 rubygems

Version Path
trusty-festivity-extension-2.3.1 node_modules/bower/node_modules/request-progress/node_modules/throttleit/example.js
trusty-festivity-extension-2.3.0 node_modules/bower/node_modules/request-progress/node_modules/throttleit/example.js
hooch-0.4.2 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/request-progress/node_modules/throttleit/example.js
hooch-0.4.1 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/request-progress/node_modules/throttleit/example.js
hooch-0.4.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/request-progress/node_modules/throttleit/example.js
hooch-0.3.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/request-progress/node_modules/throttleit/example.js
hooch-0.2.1 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/request-progress/node_modules/throttleit/example.js
hooch-0.2.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/request-progress/node_modules/throttleit/example.js
hooch-0.1.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/request-progress/node_modules/throttleit/example.js
hooch-0.0.8 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/request-progress/node_modules/throttleit/example.js
hooch-0.0.7 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/request-progress/node_modules/throttleit/example.js
hooch-0.0.6 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/request-progress/node_modules/throttleit/example.js
entangled-0.0.16 spec/dummy/public/node_modules/phantomjs/node_modules/request-progress/node_modules/throttleit/example.js
entangled-0.0.16 spec/dummy/public/node_modules/bower/node_modules/request-progress/node_modules/throttleit/example.js
entangled-0.0.15 spec/dummy/public/node_modules/phantomjs/node_modules/request-progress/node_modules/throttleit/example.js
entangled-0.0.15 spec/dummy/public/node_modules/bower/node_modules/request-progress/node_modules/throttleit/example.js
entangled-0.0.14 spec/dummy/public/node_modules/phantomjs/node_modules/request-progress/node_modules/throttleit/example.js
entangled-0.0.14 spec/dummy/public/node_modules/bower/node_modules/request-progress/node_modules/throttleit/example.js
entangled-0.0.13 spec/dummy/public/node_modules/phantomjs/node_modules/request-progress/node_modules/throttleit/example.js
entangled-0.0.13 spec/dummy/public/node_modules/bower/node_modules/request-progress/node_modules/throttleit/example.js