Socket
Socket
Sign inDemoInstall

octoqueue

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    octoqueue

simple GitHub API queue for rate limiting


Version published
Weekly downloads
6
Maintainers
1
Install size
14.9 kB
Created
Weekly downloads
 

Readme

Source

octoqueue

Octoqueue is a simple Github API queue for keeping your request pace with rate limiting.

Installation

$ npm install octoqueue

Usage

var https = require('https');
  
var q = new Octoqueue();
  
// just wrap your request in a function which returns `https.ClientRequest` object.
q.queue(function() {
  var req = https.request({ ... });
  req.on('response', function() {
    ...
  });
  req.end();
  return req;
});

License

MIT

Keywords

FAQs

Last updated on 10 Mar 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc