Proxy to String
Creating a proxy string from objects.
npm i proxy-to-string
Examples:
const proxyToString = ;; // return this:// 'https://123.123.2.42:8080@superLogin:superPassword'
If you want the login and password to go at the beginning, just put loginPassFirst: true
const proxyToString = ;; // return this:// 'https://superLogin:superPassword@123.123.2.42:8080'
If your login and password looks like this: superLogin:superPassword
or/and your ip address: 123.123.2.42: 8080
then use loginPassword
and/or ipAddressPort
. These options are always in priority.
const proxyToString = ;; // return this:// 'https://123.123.2.42:8080@superLogin:superPassword'
You can ignore any options, and, say, leave only ipAddress
and port
const proxyToString = ;; // return this:// '123.123.2.42:8080'