{"id":16236194,"url":"https://github.com/ganevdev/proxy-turn-over","last_synced_at":"2025-06-21T01:33:33.652Z","repository":{"id":65476787,"uuid":"170181492","full_name":"ganevdev/proxy-turn-over","owner":"ganevdev","description":"Flip host:port and login:password in private proxy (proxy with authorization).","archived":false,"fork":false,"pushed_at":"2019-04-08T09:13:32.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-25T18:50:43.991Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/proxy-turn-over","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ganevdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-11T18:41:23.000Z","updated_at":"2020-11-11T14:52:48.000Z","dependencies_parsed_at":"2023-01-25T15:01:10.576Z","dependency_job_id":null,"html_url":"https://github.com/ganevdev/proxy-turn-over","commit_stats":null,"previous_names":["ganevru/proxy-turn-over"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ganevdev/proxy-turn-over","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganevdev%2Fproxy-turn-over","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganevdev%2Fproxy-turn-over/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganevdev%2Fproxy-turn-over/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganevdev%2Fproxy-turn-over/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ganevdev","download_url":"https://codeload.github.com/ganevdev/proxy-turn-over/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganevdev%2Fproxy-turn-over/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261046387,"owners_count":23102256,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T13:29:35.237Z","updated_at":"2025-06-21T01:33:28.635Z","avatar_url":"https://github.com/ganevdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Proxy Turn Over\n\n[![Build Status](https://travis-ci.com/Ganevru/proxy-turn-over.svg?branch=master)](https://travis-ci.com/Ganevru/proxy-turn-over)\n[![npm](https://img.shields.io/npm/v/proxy-turn-over.svg?style=flat-square)](http://npm.im/proxy-turn-over)\n\nFlip host:port and login:password in private proxy (proxy with login and password).\nIf there is a protocol, it will always be at the beginning.\n\nThis library relies heavily on [split-proxy](https://github.com/Ganevru/split-proxy)\n\n```bash\nnpm i proxy-turn-over\n```\n\nExamples:\n\nhost:port first (default):\n\n```javascript\nconst proxyTurnOver = require('proxy-turn-over');\nproxyTurnOver('https://superLogin:superPassword@123.123.2.42:8080');\n\n// return this:\n// 'https://123.123.2.42:8080@superLogin:superPassword'\n```\n\nlogin:password first (need a second argument - 'loginPass'):\n\n```javascript\nconst proxyTurnOver = require('proxy-turn-over');\nproxyTurnOver('123.123.2.42:8080@superLogin:superPassword', 'loginPass');\n\n// return this:\n// 'superLogin:superPassword@123.123.2.42:8080'\n```\n\nExpand proxy array so that login and password always follow @\n\n```javascript\nconst proxyTurnOver = require('proxy-turn-over');\nconst proxyArray = [\n  '123.123.2.42:8080@superLogin:superPassword',\n  'https://superLogin:superPassword@123.123.2.42:8080',\n  '123.123.2.42:8080',\n  'superLogin:superPassword@123.123.2.42:9999',\n  'login:pass@123.123.2.42:000'\n];\n\nconst newProxyArray = proxyArray.map((proxy) =\u003e {\n  return proxyTurnOver(proxy);\n});\n\n// return this:\n// [ '123.123.2.42:8080@superLogin:superPassword',\n//   'https://123.123.2.42:8080@superLogin:superPassword',\n//   '123.123.2.42:8080',\n//   '123.123.2.42:9999@superLogin:superPassword',\n//   '123.123.2.42:000@login:pass' ]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganevdev%2Fproxy-turn-over","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fganevdev%2Fproxy-turn-over","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganevdev%2Fproxy-turn-over/lists"}