{"id":16098547,"url":"https://github.com/vladpuz/proxy-string-parser","last_synced_at":"2025-04-05T22:42:55.404Z","repository":{"id":63053638,"uuid":"564935773","full_name":"vladpuz/proxy-string-parser","owner":"vladpuz","description":"Parsing proxy string","archived":false,"fork":false,"pushed_at":"2024-02-01T17:09:32.000Z","size":1060,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-19T05:42:25.346Z","etag":null,"topics":["parser","proxy","string"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/proxy-string-parser","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vladpuz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-11-11T21:25:16.000Z","updated_at":"2023-03-06T14:48:10.000Z","dependencies_parsed_at":"2024-01-21T14:26:55.208Z","dependency_job_id":"eeffadd9-51a2-4064-85b5-d4c1db2d6fca","html_url":"https://github.com/vladpuz/proxy-string-parser","commit_stats":null,"previous_names":["vpuzzyrev/proxy-string-parser","vladislav-puzyrev/proxy-string-parser","vladpuz/proxy-string-parser"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladpuz%2Fproxy-string-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladpuz%2Fproxy-string-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladpuz%2Fproxy-string-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladpuz%2Fproxy-string-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vladpuz","download_url":"https://codeload.github.com/vladpuz/proxy-string-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411194,"owners_count":20934650,"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":["parser","proxy","string"],"created_at":"2024-10-09T18:23:55.251Z","updated_at":"2025-04-05T22:42:55.382Z","avatar_url":"https://github.com/vladpuz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# proxy-string-parser\n\n## Deprecated\n\nUse native URL objects instead: https://developer.mozilla.org/en-US/docs/Web/API/URL.\n\nExample:\n\n```typescript\nconst url1 = new URL('https://username:password@localhost:3000')\nconst url2 = new URL('https://localhost:3000')\n\nconsole.log(url1.protocol, url1.username, url1.password, url1.hostname, url1.port)\nconsole.log(url2.protocol, url2.hostname, url2.port)\n```\n\n## Introduction\n\nParsing strings of the following formats:\n\n```text\nprotocol://username:password@host:port\nprotocol://host:port\nusername:password@host:port\nhost:port\n```\n\nTo the Proxy object:\n\n```typescript\ninterface Proxy {\n  host: string\n  port: number\n  auth?: {\n    username: string\n    password: string\n  }\n  protocol?: string\n}\n```\n\nTypeDoc documentation is available on [wiki](https://github.com/vladislav-puzyrev/proxy-string-parser/wiki).\n\n## Install\n\n```bash\nnpm install proxy-string-parser\n```\n\n## Usage\n\n```javascript\nimport proxyStringParser from 'proxy-string-parser'\n\nconst proxy = proxyStringParser('protocol://username:password@host:80')\nconsole.log(proxy)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladpuz%2Fproxy-string-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvladpuz%2Fproxy-string-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladpuz%2Fproxy-string-parser/lists"}