0.0.8 • Published 10 years ago

functionqueue v0.0.8

Weekly downloads
1
License
ISC
Repository
github
Last release
10 years ago

FunctionQueue

A small library providing utility methods to queue and rate limit JavaScript functions.

Installation

npm install functionqueue

Usage

var FunctionQueue = require('functionqueue');

// max 3 calls per 7 seconds var fnQ = new FunctionQueue(3, 7);

fnQ.scheduleFn(someFunction, "param1");

Complete constructor args: maxCallsPerPeriod periodLengthSeconds (period over which max calls checked - default 60s) maxFrequency (call no more than every X seconds - default 5s) queueName (enables debug logging)

Tests

npm test

Release History

  • 0.0.8 Initial release
0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago