{"id":16236186,"url":"https://github.com/ganevdev/proxy-to-string","last_synced_at":"2025-04-08T08:28:35.223Z","repository":{"id":143754739,"uuid":"170329079","full_name":"ganevdev/proxy-to-string","owner":"ganevdev","description":"Creating a proxy string from objects.","archived":false,"fork":false,"pushed_at":"2019-04-01T07:37:25.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T14:39:01.291Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/proxy-to-string","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,"governance":null}},"created_at":"2019-02-12T14:09:37.000Z","updated_at":"2020-11-11T14:52:50.000Z","dependencies_parsed_at":"2023-08-19T10:44:20.855Z","dependency_job_id":null,"html_url":"https://github.com/ganevdev/proxy-to-string","commit_stats":null,"previous_names":["ganevru/proxy-to-string"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganevdev%2Fproxy-to-string","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganevdev%2Fproxy-to-string/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganevdev%2Fproxy-to-string/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganevdev%2Fproxy-to-string/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ganevdev","download_url":"https://codeload.github.com/ganevdev/proxy-to-string/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247803707,"owners_count":20998810,"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:33.335Z","updated_at":"2025-04-08T08:28:35.157Z","avatar_url":"https://github.com/ganevdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Proxy to String\n\n[![Build Status](https://travis-ci.com/Ganevru/proxy-to-string.svg?branch=master)](https://travis-ci.com/Ganevru/proxy-to-string)\n[![npm](https://img.shields.io/npm/v/proxy-to-string.svg?style=flat-square)](http://npm.im/proxy-to-string)\n\nCreating a proxy string from objects.\n\n```bash\nnpm i proxy-to-string\n```\n\nExamples:\n\n```js\nconst proxyToString = require('proxy-to-string');\nproxyToString({\n  protocol: 'https',\n  ipAddress: '123.123.2.42',\n  port: '8080',\n  login: 'superLogin',\n  password: 'superPassword'\n});\n\n// return this:\n// 'https://123.123.2.42:8080@superLogin:superPassword'\n```\n\nIf you want the login and password to go at the beginning, just put `loginPassFirst: true`\n\n```js\nconst proxyToString = require('proxy-to-string');\nproxyToString({\n  protocol: 'https',\n  ipAddress: '123.123.2.42',\n  port: '8080',\n  login: 'superLogin',\n  password: 'superPassword',\n  loginPassFirst: true\n});\n\n// return this:\n// 'https://superLogin:superPassword@123.123.2.42:8080'\n```\n\nIf 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.\n\n```js\nconst proxyToString = require('proxy-to-string');\nproxyToString({\n  protocol: 'https',\n  loginPassword: 'superLogin:superPassword',\n  ipAddressPort: '123.123.2.42:8080'\n});\n\n// return this:\n// 'https://123.123.2.42:8080@superLogin:superPassword'\n```\n\nYou can ignore any options, and, say, leave only `ipAddress` and `port`\n\n```js\nconst proxyToString = require('proxy-to-string');\nproxyToString({\n  ipAddress: '123.123.2.42',\n  port: '8080'\n});\n\n// return this:\n// '123.123.2.42:8080'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganevdev%2Fproxy-to-string","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fganevdev%2Fproxy-to-string","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganevdev%2Fproxy-to-string/lists"}