@dannycurrie/request-multiple-urls

1.0.0 • Public • Published

request_multiple_urls

Request mutiple URLs in a single function call and recieve the results in a Promise.

Installation

$ npm install request-multiple-urls

Usage

const requestURLs = require('request_multiple_urls')

const myURLs = ['http://one.com', 'http://two.com']
requestURLs(myURLs)
    .then(result => doSomethingWith(result)) // [ { urlContent }, { urlContent } ]
    .catch(error => handle(error));

Test

Tests are run with ava by running:

$ npm test

Dependents (0)

Package Sidebar

Install

npm i @dannycurrie/request-multiple-urls

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

94.8 kB

Total Files

7

Last publish

Collaborators

  • dannycurrie