{"id":23377960,"url":"https://github.com/beyondjs/ports","last_synced_at":"2026-01-30T11:26:17.800Z","repository":{"id":64126100,"uuid":"572996415","full_name":"beyondjs/ports","owner":"beyondjs","description":"A lightweight Node.js utility package for checking port availability on a system. This simple tool provides an easy-to-use API to determine if a specific network port is free or in use, making it ideal for applications that need to dynamically allocate ports or verify port availability before binding.","archived":false,"fork":false,"pushed_at":"2024-09-13T23:03:54.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-21T00:21:33.083Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/beyondjs.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-12-01T13:33:33.000Z","updated_at":"2024-09-13T23:03:57.000Z","dependencies_parsed_at":"2025-06-09T22:04:45.764Z","dependency_job_id":"f194390c-17e6-4114-b082-cf3d71921993","html_url":"https://github.com/beyondjs/ports","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/beyondjs/ports","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondjs%2Fports","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondjs%2Fports/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondjs%2Fports/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondjs%2Fports/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beyondjs","download_url":"https://codeload.github.com/beyondjs/ports/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondjs%2Fports/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28911821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T08:15:08.179Z","status":"ssl_error","status_checked_at":"2026-01-30T08:14:31.507Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-21T18:33:36.970Z","updated_at":"2026-01-30T11:26:17.796Z","avatar_url":"https://github.com/beyondjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @beyond-js/ports\n\nA simple utility package to check if a port is available on the system.\n\n## Installation\n\nInstall the package using npm:\n\n```bash\nnpm install @beyond-js/ports\n```\n\n## Usage\n\nHere's a basic example of how to use the `@beyond-js/ports` package:\n\n```javascript\nconst ports = require('@beyond-js/ports');\n\nasync function checkPort(port) {\n\tconst isAvailable = await ports.check(port);\n\tconsole.log(`Port ${port} is ${isAvailable ? 'available' : 'in use'}`);\n}\n\ncheckPort(3000);\n```\n\n## API\n\n### `check(port)`\n\nChecks if the specified port is available.\n\n-   `port` (number): The port number to check.\n-   Returns: A Promise that resolves to `true` if the port is available, `false` otherwise.\n\n## License\n\nMIT © [[BeyondJS](https://beyondjs.com)]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyondjs%2Fports","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeyondjs%2Fports","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyondjs%2Fports/lists"}