Enable proxy support for Popsicle (for node)
$ npm install popsicle-proxy-agent
Generic proxy agent (for Popsicle and node.js).
npm install popsicle-proxy-agent --save
var popsicle = require('popsicle')
var createProxy = require('popsicle-proxy-agent')
var proxy = createProxy({
proxy: '...'
})
popsicle.get({
url: 'http://example.com',
transport: popsicle.createTransport({
agent: proxy('http://example.com')
})
})
process.env.HTTP_PROXY
)process.env.HTTPS_PROXY
)process.env.NO_PROXY
)Apache 2.0
© 2010 - cnpmjs.org x YWFE | Home | YWFE