{"id":13493188,"url":"https://github.com/sindresorhus/wait-for-localhost-cli","last_synced_at":"2025-04-06T11:10:51.021Z","repository":{"id":54799114,"uuid":"136645981","full_name":"sindresorhus/wait-for-localhost-cli","owner":"sindresorhus","description":"Wait for localhost to be ready from the command-line","archived":false,"fork":false,"pushed_at":"2024-05-18T22:07:06.000Z","size":14,"stargazers_count":118,"open_issues_count":0,"forks_count":10,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-30T10:07:59.875Z","etag":null,"topics":["cli-app","delay","localhost","nodejs","npm-package","server","wait"],"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/sindresorhus.png","metadata":{"funding":{"github":"sindresorhus","open_collective":"sindresorhus","buy_me_a_coffee":"sindresorhus","custom":"https://sindresorhus.com/donate"},"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":"2018-06-08T17:07:17.000Z","updated_at":"2024-08-27T04:50:42.000Z","dependencies_parsed_at":"2023-12-19T05:56:13.200Z","dependency_job_id":"eb440edc-e784-4dfb-b866-43b664138d81","html_url":"https://github.com/sindresorhus/wait-for-localhost-cli","commit_stats":{"total_commits":16,"total_committers":6,"mean_commits":"2.6666666666666665","dds":0.3125,"last_synced_commit":"027c6cf06a6ec64b1a1df571a28a0b3c35c2ba4b"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fwait-for-localhost-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fwait-for-localhost-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fwait-for-localhost-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fwait-for-localhost-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/wait-for-localhost-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332556,"owners_count":20921853,"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":["cli-app","delay","localhost","nodejs","npm-package","server","wait"],"created_at":"2024-07-31T19:01:13.028Z","updated_at":"2025-04-06T11:10:51.001Z","avatar_url":"https://github.com/sindresorhus.png","language":"JavaScript","readme":"# wait-for-localhost-cli\n\n\u003e Wait for localhost to be ready from the command-line\n\nUseful if you need a local server to be ready to accept requests before executing the next command.\n\nI personally use this to wait for [`webpack-dev-server`](https://github.com/webpack/webpack-dev-server) to be ready before launching Electron.\n\n## Install\n\n```sh\nnpm install --global wait-for-localhost-cli\n```\n\n## Usage\n\n```\n$ wait-for-localhost --help\n\n  Usage\n    $ wait-for-localhost [port]\n\n  Options\n    --use-get       Use the HTTP-method GET instead of HEAD to test if the server is ready.\n    --path          Use a custom path. For example, /health for a health-check endpoint.\n    --status-codes  Define status codes indicating the server is ready. [Default: 200]\n\n  Examples\n    $ wait-for-localhost 8080 \u0026\u0026 echo 'Server is ready'\n    $ wait-for-localhost 8080 --status-codes 200,201 \u0026\u0026 echo 'Server is ready'\n```\n\n## Related\n\n- [wait-for-localhost](https://github.com/sindresorhus/wait-for-localhost) - API for this package\n- [delay-cli](https://github.com/sindresorhus/delay-cli) - Delay execution for a given amount of seconds\n","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://buymeacoffee.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fwait-for-localhost-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Fwait-for-localhost-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fwait-for-localhost-cli/lists"}