UNPKG

tokenbucket

Version:

A flexible rate limiter using different variations of the Token Bucket algorithm, with hierarchy support, and optional persistence in Redis. Useful for limiting API requests, or other tasks that need to be throttled.

59 lines (58 loc) 1.55 kB
{ "name": "tokenbucket", "version": "0.3.2", "description": "A flexible rate limiter using different variations of the Token Bucket algorithm, with hierarchy support, and optional persistence in Redis. Useful for limiting API requests, or other tasks that need to be throttled.", "keywords": [ "rate limiter", "request limiter", "limit rate", "limit requests", "token bucket", "leaky bucket", "throttle", "throttling", "throttler" ], "homepage": "https://github.com/jesucarr/tokenbucket", "bugs": "https://github.com/jesucarr/tokenbucket/issues", "author": { "name": "Jesús Carrera", "email": "jesus.carrera@frontendmatters.com", "url": "https://github.com/jesucarr" }, "main": "./lib/tokenbucket.js", "repository": { "type": "git", "url": "https://github.com/jesucarr/tokenbucket.git" }, "scripts": { "test": "gulp test", "coveralls": "gulp coveralls" }, "dependencies": { "bluebird": "2.9.24", "redis": "^0.12.1" }, "devDependencies": { "chai": "2.2.0", "chai-as-promised": "5.0.0", "coffee-script": "1.9.2", "gulp": "3.8.11", "gulp-coffee": "2.3.1", "gulp-concat": "2.5.2", "gulp-coveralls": "0.1.3", "gulp-istanbul": "0.8.1", "gulp-jsdoc-to-markdown": "1.1.1", "gulp-mocha": "2.0.1", "gulp-plumber": "1.0.0", "gulp-util": "3.0.4", "mocha": "2.2.4", "sinon": "1.14.1", "sinon-chai": "2.7.0" }, "engines": { "node": ">=0.10.0", "npm": ">=1.2.10" }, "license": "MIT" }