is-https-proxy
v1.0.0
Published
check if proxy supports https protocol
Downloads
8
Readme
is-https-proxy
npm i is-https-proxy
check if proxy supports https protocol
const isHttpsProxy = require('is-https-proxy')
const httpsProxy = {
// luminati default proxy
host: 'zproxy.lum-superproxy.io',
port: 22225
}
isHttpsProxy(httpsProxy)
.then(console.log) // true
.catch(console.error) // for sure
isHttpsProxy(options)
- options: tls.connectOptions
- require { host, port }