# parallel-get

> http GET an array of urls in parallel

Latest version **1.0.1** (published 2017-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install parallel-get
pnpm add parallel-get
yarn add parallel-get
bun add parallel-get
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-08-30 |
| First published | 2017-08-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jake Burden |
| Maintainers | jekrb |
| Keywords | parallel, get, http, run, simple-http, run-parallel, streams, buffers |

## Links

- npm: https://www.npmjs.com/package/parallel-get
- npm.io page: https://npm.io/package/parallel-get

## Dependencies (2)

- [simple-get](https://npm.io/package/simple-get.md) ^2.7.0
- [run-parallel](https://npm.io/package/run-parallel.md) ^1.1.6

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-08-30
- 1.0.0 — 2017-08-30

## README

# parallel-get

> http GET an array of urls in parallel

This is some simple glue code that uses `simple-get` inside `run-parallel`. It
can return an array of of streams or an array of buffers.

## Usage

```js
var parallelGet = require('parallel-get')

var urls = [
  'http://127.0.0.1:8967',
  'http://127.0.0.1:8967/neat'
]

parallelGet(urls, function (err, results) {
  if (err) return console.error(err)
  console.log(results) // <- array of streams of http GET data
  results[0].pipe(process.stdout)
  results[1].pipe(process.stdout)
})

parallelGet.concat(urls, function (err, results) {
  if (err) return console.error(err)
  console.log(results) // <- array of buffers of http GET data
  console.log(results[0].toString())
  console.log(results[1].toString())
})
```

## API

```js
var parallelGet = require('parallel-get')

parallelGet(array, cb)
// array is an array of urls
// cb takes (err, results)
// results is an array of streams

parallelGet.concat(array, cb)
// array is an array of urls
// cb takes (err, results)
// results is an array of buffers

```

## Install

```
$ npm install parallel-get
```

## See Also

- [`run-parallel`](https://github.com/feross/run-parallel)
- [`simple-get`](https://github.com/feross/simple-get)

## License

MIT

---
_Source: https://npm.io/package/parallel-get · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
