choker
throttle on limited rate
Installation
npm install choker
Usage
const choker = const rate = limit: 20 interval: 1000 // ms { // perform request... return `Sent to `} const smsList = to: 777888 msg: 'hi' // ... // [// 'Sent to 777888',// ...// ]
Development
# clone repo git clone https://github.com/despan/choker # cd choker # install dependencies npm install
Test
# run quick tests npm run test # test watching file changes npm run test:watch
Contributing
Check Contributing Guide.
Acknowledgements
- Choker logo by Olena Panasovska from the Noun Project
License
The MIT License