{"id":19175372,"url":"https://github.com/andrepolischuk/wait-for-online","last_synced_at":"2025-02-23T00:45:58.732Z","repository":{"id":65379169,"uuid":"106578216","full_name":"andrepolischuk/wait-for-online","owner":"andrepolischuk","description":"Wait for a browser to be online","archived":false,"fork":false,"pushed_at":"2017-10-11T16:23:54.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-04T01:54:04.663Z","etag":null,"topics":["navigator","online","wait"],"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/andrepolischuk.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}},"created_at":"2017-10-11T16:13:35.000Z","updated_at":"2017-11-12T00:40:37.000Z","dependencies_parsed_at":"2023-01-20T08:35:41.328Z","dependency_job_id":null,"html_url":"https://github.com/andrepolischuk/wait-for-online","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/andrepolischuk%2Fwait-for-online","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrepolischuk%2Fwait-for-online/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrepolischuk%2Fwait-for-online/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrepolischuk%2Fwait-for-online/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrepolischuk","download_url":"https://codeload.github.com/andrepolischuk/wait-for-online/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240254181,"owners_count":19772386,"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":["navigator","online","wait"],"created_at":"2024-11-09T10:22:56.326Z","updated_at":"2025-02-23T00:45:58.712Z","avatar_url":"https://github.com/andrepolischuk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wait-for-online [![Build Status][travis-image]][travis-url]\n\n\u003e Wait for a browser to be online\n\nGood for the chain of promises or `async`/`await`.\n\n## Install\n\n```sh\nnpm install --save wait-for-online\n```\n\n## Usage\n\n```js\nimport waitForOnline from 'wait-for-online'\n\nasync function send (data) {\n  await waitForOnline()\n  await sendToApi(data)\n}\n\nsend({foo: 1})\n```\n\n## API\n\n### waitForOnline([timeout])\n\nReturns a promise that resolves, when browser will be online.\n\n#### timeout\n\nType: `number`  \nDefault: `Infinity`\n\nWaiting timeout.\n\n## License\n\nMIT\n\n[travis-url]: https://travis-ci.org/andrepolischuk/wait-for-online\n[travis-image]: https://travis-ci.org/andrepolischuk/wait-for-online.svg?branch=master\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrepolischuk%2Fwait-for-online","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrepolischuk%2Fwait-for-online","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrepolischuk%2Fwait-for-online/lists"}