Skip to content

dresende/calminha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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) {
    // ...
});

About

Function calling rate limiter

Resources

License

Stars

Watchers

Forks

Packages

No packages published