parallel-fetch
v0.0.1
Published
Fetch with limiting the number of concurrent tasks
Downloads
6
Readme
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);
});