0.0.1 • Published 6 years ago

parallel-fetch v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Build Status Coverage Status Dependency Status XO code style

parallel-fetch

Fetch with limiting the number of concurrent tasks

Usage

const Loader = require('parallel-fetch');

const loader = new Loader({concurrency: 5});

loader.load('https://foo.com/bar.html', {noCache: true}, (err, result) => {
  if (err) {
    return console.log(`Error: ${err.stack}`);
  }
  console.log(`MIMEType: ${result.mimeType}`);
  console.log(result.data);
});