- working keepalive
 - option to allow self-signed servers
 - basic auth for proxy authentication
 - 60 lines of code (100% code coverage)
 - only works with https requests (proxy can be http or https)
 
npm install keepalive-proxy-agent
let https = require('https')
let Agent = require('keepalive-proxy-agent')
let agent = new Agent ()
let options = {hostname: 'google.de', port: 443, agent: agent}
https.get(options, (resp) => resp.pipe(process.stdout))...
let agent = new Agent ({proxy:{host:"MYPROXYHOST",port:3128}})
......
let options = {hostname: 'google.de', port: 443, agent: agent, rejectUnauthorized: false}
......
let agent = new Agent ({proxy:{host:"MYPROXYHOST",port:3128, auth:"USER:PASS"}})
...