{"id":18589631,"url":"https://github.com/alex1990/anyport","last_synced_at":"2025-05-16T08:08:18.625Z","repository":{"id":57180988,"uuid":"78649881","full_name":"Alex1990/anyport","owner":"Alex1990","description":"A command line tool to get a list of available ports","archived":false,"fork":false,"pushed_at":"2017-01-11T15:34:43.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T19:58:05.582Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Alex1990.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-11T15:04:00.000Z","updated_at":"2019-10-14T20:19:20.000Z","dependencies_parsed_at":"2022-09-14T03:31:56.107Z","dependency_job_id":null,"html_url":"https://github.com/Alex1990/anyport","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex1990%2Fanyport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex1990%2Fanyport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex1990%2Fanyport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex1990%2Fanyport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alex1990","download_url":"https://codeload.github.com/Alex1990/anyport/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254493385,"owners_count":22080127,"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-07T00:52:50.818Z","updated_at":"2025-05-16T08:08:18.601Z","avatar_url":"https://github.com/Alex1990.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/Alex1990/anyport.svg?branch=master)](https://travis-ci.org/Alex1990/anyport)\n[![Coverage Status](https://coveralls.io/repos/github/Alex1990/anyport/badge.svg?branch=master)](https://coveralls.io/github/Alex1990/anyport?branch=master)\n\n# anyport\n\nA command line tool to get a list of available ports.\n\n## Installation\n\n```shell\nnpm i anyport\n```\n\n## Usage\n\n```shell\n\n  Usage: anyport [options]\n\n  Options:\n\n    -h, --help     output usage information\n    -V, --version  output the version number\n    --min [n]      The minimum port number, default: 8000\n    --max [n]      The maximum port number, at most 65535\n    --num [n]      The number of the available ports, default: 1\n\n```\n\nBy default, it will print one available port.\n\n```shell\n$ anyport\n8000\n```\n\nWith the `--num` option, you can specify how many ports you want to get. The port numbers are delimited by comma.\n\n```shell\n$ anyport --num 10\n8000,8001,8002,8003,8004,8005,8006,8007,8008,8009\n```\n\nAlso, you can specify the range of the generated ports with the `--min` and `--max` options.\n\n```shell\n$ anyport --min 9000\n9000\n$ anyport --min 9000 --max 9005 --num 10\n9000,9001,9002,9003,9004,9005\n```\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex1990%2Fanyport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falex1990%2Fanyport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex1990%2Fanyport/lists"}