# pcurl

> Concurrently curl a list of hosts and print the results

Latest version **0.0.1** (published 2014-05-24) · 0 weekly downloads

## Install

```sh
npm install pcurl
pnpm add pcurl
yarn add pcurl
bun add pcurl
```

Provides the command `pcurl`.

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-05-24 |
| First published | 2012-10-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dave Eddy |
| Maintainers | bahamas10 |
| Keywords | curl, pcurl, concurrent, parallel |

## Links

- npm: https://www.npmjs.com/package/pcurl
- Repository: https://github.com/bahamas10/node-pcurl
- Issues: https://github.com/bahamas10/node-pcurl/issues
- npm.io page: https://npm.io/package/pcurl

## Dependencies (2)

- [yatf](https://npm.io/package/yatf.md) ~1.0.3
- [request](https://npm.io/package/request.md) ~2.11.4

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 0.0.1 (latest) — 2014-05-24
- 0.0.0 — 2012-10-10

## README

pcurl
=====

Concurrently curl a list of hosts and print the results

![Pcurl](http://www.daveeddy.com/static/media/github/pcurl.png)

Usage
-----

Used as a command line tool

    pcurl url1 url2 url3 ...

or pipe through stdin

    pcurl < newline_sep_list_of_urls.txt

Examples
--------

Use bash expansion to hit multiple URLs at the same time, and report the results

    $ pcurl http://ifconfig.me/{ip,host,ua,port,lang,connection}
    URL                            CODE  BODY
    http://ifconfig.me/connection  200   keep-alive
    http://ifconfig.me/host        200   host.isp.net
    http://ifconfig.me/ip          200   2.6.9.8
    http://ifconfig.me/lang        404
    http://ifconfig.me/port        200   41699
    http://ifconfig.me/ua          200

Or send the same data through stdin

    $ printf "%s\n" http://ifconfig.me/{ip,host,ua,port,lang,connection}
    http://ifconfig.me/ip
    http://ifconfig.me/host
    http://ifconfig.me/ua
    http://ifconfig.me/port
    http://ifconfig.me/lang
    http://ifconfig.me/connection
    $ printf "%s\n" http://ifconfig.me/{ip,host,ua,port,lang,connection} | pcurl
    URL                            CODE  BODY
    http://ifconfig.me/connection  200   keep-alive
    http://ifconfig.me/host        200   host.isp.net
    http://ifconfig.me/ip          200   2.6.9.8
    http://ifconfig.me/lang        404
    http://ifconfig.me/port        200   41699
    http://ifconfig.me/ua          200

Limitations
-----------

* Only supports GET requests
* Meant to receive small body data
* Hardcoded 10 second timeout

Install
-------

    npm install -g pcurl

License
-------

MIT

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