Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    getproxypublic

    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

    7

    version

    1.5.2

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar