feathers-hooks-ratelimit:FeathersJS的fast-ratelimit上的简单包装

时间:2021-05-01 18:07:22
【文件属性】:
文件名称:feathers-hooks-ratelimit:FeathersJS的fast-ratelimit上的简单包装
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-01 18:07:22
JavaScript 羽毛钩速率限制 羽毛钩住请求速率限制。 使用 。 安装 yarn add feathers-hooks-ratelimit 或者 npm i feathers-hooks-ratelimit --save 用法 const rateLimit = require ( 'feathers-hooks-ratelimit' ) ; const config = { threshold : 20 , // available tokens over timespan ttl : 60 // time-to-live value of token bucket (in seconds) userIdKey : 'user_id' , // used for request namespacing errorMessage
【文件预览】:
feathers-hooks-ratelimit-master
----index.js(716B)
----package.json(378B)
----.gitignore(578B)
----README.md(1KB)
----yarn.lock(1KB)
----LICENSE.txt(1KB)

网友评论