proxy-rotator-js 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -100,6 +100,18 @@ const proxyRotator = new ProxyRotator(proxies, options);
|
|
|
100
100
|
- assume_aliveness: Specifies whether to assume all proxies are alive when first added instead of 'new'. Default: false.
|
|
101
101
|
- check_on_next: Specifies whether to check if proxies are alive when they are added to the queue. Default: false.
|
|
102
102
|
|
|
103
|
+
## Testing your Proxies
|
|
104
|
+
|
|
105
|
+
```javascript
|
|
106
|
+
import ProxyRotator from 'proxy-rotator-js'
|
|
107
|
+
|
|
108
|
+
let proxies = ['proxy1', 'proxy2', 'proxy3']
|
|
109
|
+
|
|
110
|
+
let rotator = new ProxyRotator(proxies, options={})
|
|
111
|
+
|
|
112
|
+
rotator.test()
|
|
113
|
+
```
|
|
114
|
+
|
|
103
115
|
## Getting Started
|
|
104
116
|
|
|
105
117
|
To use the ProxyRotator class in your JavaScript project, follow these steps:
|