calminha

0.1.0 • Public • Published

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

/calminha/

    Package Sidebar

    Install

    npm i calminha

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • dresende