node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »

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