{"id":22308763,"url":"https://github.com/ratson/connect-port","last_synced_at":"2025-03-26T01:28:54.256Z","repository":{"id":57205756,"uuid":"95355859","full_name":"ratson/connect-port","owner":"ratson","description":"Resolve a promise when successfully connected to remote port.","archived":false,"fork":false,"pushed_at":"2018-07-01T08:43:51.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T22:51:25.556Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ratson.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}},"created_at":"2017-06-25T11:35:09.000Z","updated_at":"2024-12-24T09:17:59.000Z","dependencies_parsed_at":"2022-09-18T01:01:38.243Z","dependency_job_id":null,"html_url":"https://github.com/ratson/connect-port","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fconnect-port","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fconnect-port/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fconnect-port/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fconnect-port/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ratson","download_url":"https://codeload.github.com/ratson/connect-port/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245571257,"owners_count":20637311,"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-12-03T20:15:08.140Z","updated_at":"2025-03-26T01:28:54.238Z","avatar_url":"https://github.com/ratson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# connect-port\n\nResolve a promise when successfully connected to remote port.\n\n## Installation\n\n```\nnpm install connect-port --save\n```\n\n## Usage\n\n\u003c!-- eslint-disable strict,no-console --\u003e\n\n```js\nconst connectPort = require('connect-port')\n\nconnectPort(80, {\n  host: 'npmjs.com',\n}).then(socket =\u003e {\n  console.log(socket.connecting)\n})\n// false\n```\n\n## Related\n\n- [port-ready](https://github.com/ratson/port-ready) - Promise to wait until a port is ready to accept connection.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratson%2Fconnect-port","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fratson%2Fconnect-port","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratson%2Fconnect-port/lists"}