{"id":17861141,"url":"https://github.com/jonathanstowe/test-util-serverport","last_synced_at":"2025-04-02T20:47:01.184Z","repository":{"id":66980517,"uuid":"51465831","full_name":"jonathanstowe/Test-Util-ServerPort","owner":"jonathanstowe","description":"Get a free server port for testing with","archived":false,"fork":false,"pushed_at":"2023-07-05T06:40:19.000Z","size":13,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-07-05T07:34:18.952Z","etag":null,"topics":["network","raku","testing-tools"],"latest_commit_sha":null,"homepage":"","language":"Raku","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonathanstowe.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","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,"publiccode":null,"codemeta":null}},"created_at":"2016-02-10T19:24:54.000Z","updated_at":"2023-07-05T07:34:18.953Z","dependencies_parsed_at":"2024-10-28T09:05:45.565Z","dependency_job_id":"89e3b4ce-e3b2-46a6-9403-14d413b49f0b","html_url":"https://github.com/jonathanstowe/Test-Util-ServerPort","commit_stats":null,"previous_names":[],"tags_count":5,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FTest-Util-ServerPort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FTest-Util-ServerPort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FTest-Util-ServerPort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FTest-Util-ServerPort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonathanstowe","download_url":"https://codeload.github.com/jonathanstowe/Test-Util-ServerPort/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246892791,"owners_count":20850846,"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":["network","raku","testing-tools"],"created_at":"2024-10-28T08:43:02.523Z","updated_at":"2025-04-02T20:47:00.982Z","avatar_url":"https://github.com/jonathanstowe.png","language":"Raku","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test::Util::ServerPort \n\nGet a free server port for testing with\n\n![Build Status](https://github.com/jonathanstowe/Test-Util-ServerPort/workflows/CI/badge.svg)\n\n## Synopsis\n\n```raku\n\nuse Test::Util::ServerPort;\n\nmy $port = get-unused-port();\n\n# .. start some server with the port\n\n\n```\n\n## Description\n\nThis is a utility to help with the testing of TCP server software.\n\nIt exports a single subroutine ```get-unused-port``` that will return\na port number in the range 1025 - 65535 (or a specified range\nas an argument,) that is free to be used by a listening socket. It\nchecks by attempting to ```listen``` on a random port on the range\nuntil it finds one that is not already bound.\n\n## Installation\n\nAssuming you have a working Rakudo installation you should be able to install this with *zef* :\n\n    # From the source directory\n   \n    zef install .\n\n    # Remote installation\n\n    zef install Test::Util::ServerPort\n\n## Support\n\nSuggestions and patches that may make it more useful in your software\nare welcomed via github at:\n\nhttps://github.com/jonathanstowe/Test-Util-ServerPort\n\n## Licence\n\nThis is free software.\n\nPlease see the [LICENCE](LICENCE) file in the distribution for details.\n\n© Jonathan Stowe 2016 - 2021\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanstowe%2Ftest-util-serverport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonathanstowe%2Ftest-util-serverport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanstowe%2Ftest-util-serverport/lists"}