aboutsummaryrefslogtreecommitdiff
path: root/node_modules/proxy-check/README.md
blob: 29bd28a2cfc81f88b02eaea594dbce1408ac7004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Check proxy for NodeJS

```javascript
const proxy_check = require('proxy-check');

const proxy = {
  host: '54.82.74.24',
  port: 5557,
  proxyAuth: 'y0adXjeO:pAzAHCr4'
};
// or
// const proxy = 'y0adXjeO:pAzAHCr4@54.82.74.24:5557';

proxy_check(proxy).then(r => {
  console.log(r); // true
}).catch(e => {
  console.error(e); // ECONNRESET
});
```

#### Install your simple proxy-server: https://github.com/zamanuhina/install-proxy-one-line