# node-fetch-with-proxy

> node-fetch with proxy-agent

Latest version **0.1.6** (published 2021-09-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-fetch-with-proxy
pnpm add node-fetch-with-proxy
yarn add node-fetch-with-proxy
bun add node-fetch-with-proxy
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2021-09-13 |
| First published | 2019-10-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | Shinsuke Noguchi |
| Maintainers | snoguchi |
| Keywords | http, fetch, proxy |

## Links

- npm: https://www.npmjs.com/package/node-fetch-with-proxy
- Repository: https://github.com/snoguchi/node-fetch-with-proxy
- Homepage: https://github.com/snoguchi/node-fetch-with-proxy#readme
- Issues: https://github.com/snoguchi/node-fetch-with-proxy/issues
- npm.io page: https://npm.io/package/node-fetch-with-proxy

## Dependencies (2)

- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.2
- [proxy-agent](https://npm.io/package/proxy-agent.md) ^5.0.0

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 0.1.6 (latest) — 2021-09-13
- 0.1.5 — 2021-07-08
- 0.1.4 — 2021-04-05
- 0.1.3 — 2021-03-23
- 0.1.2 — 2019-11-22
- 0.1.1 — 2019-11-14
- 0.1.0 — 2019-10-29

## README

# node-fetch-with-proxy

Thin wrapper of [node-fetch](https://www.npmjs.com/package/node-fetch) that can be used behind the proxy.

## Install

```sh
npm install node-fetch-with-proxy
```

## Usage

API is the same as `node-fetch`.

```javascript
const fetch = require('node-fetch-with-proxy');

fetch('http://httpbin.org/get')
  .then(res => res.json())
  .then(json => console.log(json));
```

Unlike node-fetch, proxy can be set by environment variable.

```sh
export HTTP_PROXY=http://your.proxy:8888
```

Environment variables are only valid for Node.js.
Note that the browser uses its own proxy settings instead.

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