1.0.1 • Published 8 years ago

simple-throttler-http v1.0.1

Weekly downloads
5
License
ISC
Repository
github
Last release
8 years ago

simple-throttler-http

What it is

A simple utility that lets you make lots of http requests, with at least a certain delay between each other.

Usage

var HttpThrottler = require("simple-throttler-http");

var http = HttpThrottler(2500);

http.get("https://duckduckgo.com/").then(console.log);
http.get("https://mozilla.org/").then(console.log); //will fetch after 2.5s
http.get("https://f-droid.org/").then(console.log); //will fetch after 5s