{"id":22788881,"url":"https://github.com/rjoydip/wait_for_localhost","last_synced_at":"2026-04-29T18:33:03.735Z","repository":{"id":114445939,"uuid":"559440120","full_name":"rjoydip/wait_for_localhost","owner":"rjoydip","description":"Wait for localhost to be ready","archived":false,"fork":false,"pushed_at":"2022-10-30T05:37:58.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T16:25:34.736Z","etag":null,"topics":["cli","deno","wait-for-localhost"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/rjoydip.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":"2022-10-30T05:37:49.000Z","updated_at":"2023-03-17T13:23:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"f40b4b27-f9aa-4f0a-8ce3-0ac43573a6da","html_url":"https://github.com/rjoydip/wait_for_localhost","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rjoydip/wait_for_localhost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjoydip%2Fwait_for_localhost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjoydip%2Fwait_for_localhost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjoydip%2Fwait_for_localhost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjoydip%2Fwait_for_localhost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rjoydip","download_url":"https://codeload.github.com/rjoydip/wait_for_localhost/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjoydip%2Fwait_for_localhost/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32439179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["cli","deno","wait-for-localhost"],"created_at":"2024-12-12T01:37:57.250Z","updated_at":"2026-04-29T18:33:03.721Z","avatar_url":"https://github.com/rjoydip.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wait_for_localhost ![ci](https://github.com/rjoydip/wait_for_localhost/workflows/ci/badge.svg)\n\n\u003e Wait for localhost to be ready\n\nUseful if you need a local server to be ready to accept requests before doing other things.\n\n## Install\n\n```sh\ndeno install --allow-net -f --name wait_for_localhost https://deno.land/x/wait_for_localhost/cli.ts\n```\n\n## Usage CLI\n\n```sh\n$ wait_for_localhost \u003cPORT\u003e\n\n  Example\n    $ wait_for_localhost 8000 \u0026\u0026 echo \"Server is ready\"\n```\n\n## API\n\n### waitForLocalHost([options])\n\nReturns a `Promise` that settles when localhost is ready.\n\n#### options\n\nType: `Object`\n\n##### port\n\nType: `number`\u003cbr\u003e\nDefault: `80`\n\n##### path\n\nType: `string`\u003cbr\u003e\nDefault: `'/'`\n\nUse a custom path.\n\nFor example, `/health` for a health-check endpoint.\n\n##### useGet\n\nType: `boolean`\u003cbr\u003e\nDefault: `false`\n\nUse the `GET` HTTP-method instead of `HEAD` to check if the server is running.\n\n## Usage API\n\n```ts\nimport { waitForLocalhost } from \"https://deno.land/x/wait_for_localhost/mod.ts\";\n\nawait waitForLocalhost({ port: 8000 });\nconsole.log(\"Server is ready\");\n```\n\n## Inspired\n\nInspired by [wait-for-localhost](https://github.com/sindresorhus/wait-for-localhost)\n\nInspired by [wait-for-localhost-cli](https://github.com/sindresorhus/wait-for-localhost-cli)\n\n## License\n\nMIT © [Joydip Roy](https://github.com/rjoydip)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjoydip%2Fwait_for_localhost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frjoydip%2Fwait_for_localhost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjoydip%2Fwait_for_localhost/lists"}