throttled-request

Throttled version of request.

npm install throttled-request
1 downloads in the last week
4 downloads in the last month

throttled-request -- Request but throttled

Installation

Using npm:

  npm install throttled-request

Or from source:

  git clone git://github.com/colinscape/throttled-request.git 
  cd throttled-request
  npm link

Super simple to use

  trequest = require 'throttled-request'

  urls = [
    'http://www.google.com/'
    'http://news.bbc.co.uk/'
    'http://www.bing.com/'
    'http://www.lycos.co.uk/'
  ]
  trequest.requestMany urls, (err, response, body) ->
    console.log "#{response.url} : #{body.length}"

Or, as JavaScript:

  var trequest = require('throttled-request')

  urls = [
    'http://www.google.com/',
    'http://news.bbc.co.uk/',
    'http://www.bing.com/',
    'http://www.lycos.co.uk/'
  ]
  trequest.requestMany(urls, function(err, response, body) {
    console.log(response.url + ' : ' + body.length);
  });
npm loves you