0.1.0 • Published 9 years ago

calminha v0.1.0

Weekly downloads
4
License
MIT
Repository
-
Last release
9 years ago

Calminha

Calminha is a NodeJS module to queue calls to a function and enforce a minimum interval between calls. It is also a portuguese word for "take it easy".

Instalation

npm install calminha

Usage

var calminha = require("calminha");
var proxy    = calminha("check-auth", checkAuthentication, { interval: 500 });

// an example of calling the proxy, the prototype
// is exactly as the hypothetical checkAuthentication
proxy("username", "password", function (err) {
    // ...
});
0.1.0

9 years ago