https://github.com/formio/node-fetch-http-proxy
The node-fetch library with added HTTP_PROXY support
https://github.com/formio/node-fetch-http-proxy
Last synced: about 1 year ago
JSON representation
The node-fetch library with added HTTP_PROXY support
- Host: GitHub
- URL: https://github.com/formio/node-fetch-http-proxy
- Owner: formio
- License: mit
- Created: 2021-03-06T00:12:37.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-06T00:50:01.000Z (over 5 years ago)
- Last Synced: 2025-06-25T09:54:58.218Z (about 1 year ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-fetch-http-proxy
The node-fetch library with added HTTP_PROXY, HTTPS_PROXY, NO_PROXY support, same as the deprecated request.js library had.
## Usage
To install this library, just type the following.
```
npm install --save @formio/node-fetch-http-proxy
```
Then you can use this library instead of node-fetch like so.
```js
const fetch = require('@formio/node-fetch-http-proxy');
fetch('https://examples.form.io/example').then((resp) => resp.json()).then((form) => {
console.log(form);
});;
```
## HTTP_PROXY, HTTPS_PROXY, and NO_PROXY
These variables work the same as documented @ https://github.com/request/request#controlling-proxy-behaviour-using-environment-variables