{"id":19142166,"url":"https://github.com/eldoy/fport","last_synced_at":"2026-06-19T19:02:57.810Z","repository":{"id":57241279,"uuid":"340404132","full_name":"eldoy/fport","owner":"eldoy","description":"Find, wait, check and kill network ports on your system","archived":false,"fork":false,"pushed_at":"2023-07-06T11:51:41.000Z","size":356,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-17T01:31:52.106Z","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/eldoy.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}},"created_at":"2021-02-19T15:04:56.000Z","updated_at":"2023-07-06T11:51:15.000Z","dependencies_parsed_at":"2024-10-22T22:02:18.030Z","dependency_job_id":null,"html_url":"https://github.com/eldoy/fport","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"4e75fd6670b8c6832d4237700036b4ef0f37570f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Ffport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Ffport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Ffport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Ffport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eldoy","download_url":"https://codeload.github.com/eldoy/fport/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240223213,"owners_count":19767597,"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-11-09T07:26:11.023Z","updated_at":"2026-06-10T18:30:15.926Z","avatar_url":"https://github.com/eldoy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fport\n\nFind, wait, check and kill network ports on your system with NodeJS.\n\n### Usage\n\nYou can use fport programmatically or from the command line.\n\n#### Programmatically\n\nInstall with:\n\n```\nnpm i fport\n```\n\nThen use it in your app like this:\n\n```js\nconst fport = require('fport')\n\n// Get an open network port\nconst port = await fport.port()\n\n// Check if port is taken, default host is localhost\nconst taken = await fport.taken({ port: 5000 })\n\n// With host\nconst taken = await fport.taken({ port: 5000, host: '127.0.0.1' })\n\n// Wait for server to start\nawait fport.wait({\n  port: 5000,         // Default port\n  host: '127.0.0.1',  // Default host\n  timeout: 100,       // The timeout period for each try\n  tries: 0,           // Maximum number of tries\n  callback: function({ count }) {\n    console.log(`Tried connecting ${count} times`)\n  }\n})\n\n// Kill an open TCP port\nawait fport.kill({ port: 5000 })\n\n// Kill a UDP port\nawait fport.kill({ port: 5000, method: 'udp' })\n```\n\n#### From the command line\n\nInstall globally with:\n```\nnpm i -g fport\n```\n\nOnly `kill` is currently supported:\n```\n# Kill a port syntax\nfport kill \u003cport\u003e \u003cmethod\u003e\n\n# Kill port 5000 on tcp\nfport kill 5000\n\n# Kill port 5000 on udp\nfport kill 5000 udp\n```\n\nMIT Licensed. Enjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldoy%2Ffport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feldoy%2Ffport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldoy%2Ffport/lists"}