This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

axios-proxy-tunnel
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

AXIOS-PROXY-TUNNEL

styled with prettier Greenkeeper badge Travis Coveralls Dev Dependencies

Create HTTPS tunnel through HTTP proxies (like corporate proxies)

Here is an example :

import axios from 'axios';
import axiosProxyTunnel from 'axios-proxy-tunnel';
 
const myInstance = axiosProxyTunnel(axios.create());

And if you use an HTTP proxy (by setting proxy configuration, or by using environment vars), the package will change the httpsAgent, to use a tunnel .

Internally, this library use interceptors, if you want to change configuration with interceptors too, please use like this :

 
 
import axios from 'axios';
import axiosProxyTunnel from 'axios-proxy-tunnel';
 
const myInstance = axios.create();
 
//all you want to do with your instance
 
axiosProxyTunnel(myInstance);
 

For the moment, this library is just adapted to my needs, and maybe not ready in your cases . If you have ideas/problems, please create issue/PR

Readme

Keywords

Package Sidebar

Install

npm i axios-proxy-tunnel

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

92.6 kB

Total Files

10

Last publish

Collaborators

  • thib3113