node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey »

proxy-all

proxy-all

Proxies all http/https requests when NODE_PROXY env is set

Install

npm install --save proxy-all

Use

require the module

require('proxy-all');
// ... your code ... 

run your code with NODE_PROXY set

NODE_PROXY=http://localhost:8080/ node index.js