Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

getproxy

1.5.2 • Public • Published

getproxy

Get proxies.

Install

$ npm install getproxy

Usage

const proxy = require('getproxy')
 
proxy()
// => { http: 'proxy.example.com:8080', https: 'proxy.test.com:8080' }
 
proxy.http
// => 'proxy.example.com:8080'
 
proxy.https
// => 'proxy.test.com:8080'
 
proxy.for('http://example.com')
// => 'proxy.example.com:8080'
 
proxy.for('https://example.com')
// => 'proxy.test.com:8080'
 
proxy.for('example.com')
// => 'proxy.example.com:8080'
 
proxy.for('ftp://example.com')
// => null

License

MIT

Install

npm i getproxy

DownloadsWeekly Downloads

1

Version

1.5.2

License

MIT

Last publish

Collaborators

  • avatar