Usage
const throttle = require('@maxdome/throttle')();
throttle(
'key',
'10 per 2 seconds',
async () => {}
);
const throttle = require('@maxdome/throttle')();
throttle(
'key',
'10 per 2 seconds',
async () => {}
);
npm i @maxdome/throttle
3
1.2.1
MIT
2.57 kB
4