https://github.com/floatdrop/proxy-support
Patch http and https request method to use tunnel-agent
https://github.com/floatdrop/proxy-support
Last synced: about 1 year ago
JSON representation
Patch http and https request method to use tunnel-agent
- Host: GitHub
- URL: https://github.com/floatdrop/proxy-support
- Owner: floatdrop
- License: mit
- Created: 2015-07-31T08:25:43.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-10-08T16:28:53.000Z (over 7 years ago)
- Last Synced: 2025-03-14T01:31:43.221Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 137 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# proxy-support [](https://travis-ci.org/floatdrop/proxy-support)
> Patch http and https request method to use tunnel-agent
:warning: __This module will replace `agent` option in every http and https request__
## Install
```
$ npm install --save proxy-support -g
```
## Usage
Most tools (which use request, got, etc...) are using global Agent from `http`, so to fix proxy support you should do something like this:
```
alias node="node -r proxy-support"
```
This should work from [iojs@1.6.0](https://github.com/nodejs/io.js/blob/v1.x/CHANGELOG.md#2015-03-19-version-160-chrisdickinson).
## License
MIT © [Vsevolod Strukchinsky](http://github.com/floatdrop)