UNPKG

@thi.ng/leaky-bucket

Version:

Configurable, counter-based Leaky Bucket abstractions for generalized rate-limiting purposes

83 lines 2.08 kB
{ "name": "@thi.ng/leaky-bucket", "version": "0.2.13", "description": "Configurable, counter-based Leaky Bucket abstractions for generalized rate-limiting purposes", "type": "module", "module": "./index.js", "typings": "./index.d.ts", "sideEffects": false, "repository": { "type": "git", "url": "https://github.com/thi-ng/umbrella.git" }, "homepage": "https://thi.ng/leaky-bucket", "funding": [ { "type": "github", "url": "https://github.com/sponsors/postspectacular" }, { "type": "patreon", "url": "https://patreon.com/thing_umbrella" }, { "type": "liberapay", "url": "https://liberapay.com/thi.ng" } ], "author": "Karsten Schmidt (https://thi.ng)", "license": "Apache-2.0", "scripts": { "build": "yarn build:esbuild && yarn build:decl", "build:decl": "tsc --declaration --emitDeclarationOnly", "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts", "clean": "bun ../../tools/src/clean-package.ts", "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts", "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts", "pub": "yarn npm publish --access public", "test": "bun test", "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts" }, "dependencies": { "@thi.ng/api": "^8.12.1" }, "devDependencies": { "esbuild": "^0.25.8", "typedoc": "^0.28.9", "typescript": "^5.9.2" }, "keywords": [ "associative", "bucket", "counter", "datastructure", "map", "rate-limit", "time", "typescript" ], "publishConfig": { "access": "public" }, "browser": { "process": false, "setTimeout": false }, "engines": { "node": ">=18" }, "files": [ "./*.js", "./*.d.ts" ], "exports": { ".": { "default": "./index.js" } }, "thi.ng": { "status": "alpha", "year": 2025 }, "gitHead": "0bcedf8d1dd4f30cd06bb2c668599628f2f0141e\n" }