GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - orinak/choker: Throttle on limited rate

BranchesTags
Open more actions menu

Latest commit

 

History

66 Commits
66 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
test
test
 
 
vendor
vendor
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitignore
.gitignore
 
 
.huskyrc
.huskyrc
 
 
.lintstagedrc.json
.lintstagedrc.json
 
 
.npmrc
.npmrc
 
 
.nycrc
.nycrc
 
 
.travis.yml
.travis.yml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
ava.config.js
ava.config.js
 
 
commitlint.config.js
commitlint.config.js
 
 
index.js
index.js
 
 
logo.png
logo.png
 
 
package.json
package.json
 
 

Repository files navigation

choker

Build Status Coverage Status Published Version Commit Style Code Style GitHub

throttle on limited rate

Installation

npm install choker

Usage

const choker = require('choker')

const rate = {
  limit: 20,
  interval: 1000 // ms
}

async function sendSMS (data) {
  // perform request...
  return `Sent to ${data.to}`
}

const smsList = [
  { to: 777888, msg: 'hi' },
  // ...
]

choker(rate, sendSMS, smsList)
  .then(console.log)

// [
//   '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

About

Throttle on limited rate

Topics

rate-limiter

Resources

Readme
MIT license

Contributing

Contributing
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.