{"id":24143325,"url":"https://github.com/little-core-labs/hypercore-ready","last_synced_at":"2025-07-10T01:34:24.978Z","repository":{"id":57270168,"uuid":"211970138","full_name":"little-core-labs/hypercore-ready","owner":"little-core-labs","description":"Wait for 1 more or more hypercores to be ready.","archived":false,"fork":false,"pushed_at":"2019-11-01T18:58:06.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-16T09:01:52.876Z","etag":null,"topics":["callback","hypercore","ready"],"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/little-core-labs.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":"2019-09-30T22:38:17.000Z","updated_at":"2019-11-07T18:21:07.000Z","dependencies_parsed_at":"2022-08-25T02:51:35.725Z","dependency_job_id":null,"html_url":"https://github.com/little-core-labs/hypercore-ready","commit_stats":null,"previous_names":["jwerle/hypercore-ready"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/little-core-labs%2Fhypercore-ready","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/little-core-labs%2Fhypercore-ready/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/little-core-labs%2Fhypercore-ready/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/little-core-labs%2Fhypercore-ready/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/little-core-labs","download_url":"https://codeload.github.com/little-core-labs/hypercore-ready/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241072450,"owners_count":19904770,"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":["callback","hypercore","ready"],"created_at":"2025-01-12T05:15:14.663Z","updated_at":"2025-03-01T13:43:22.611Z","avatar_url":"https://github.com/little-core-labs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"hypercore-ready\n===============\n\n\u003e Wait for 1 more or more hypercores to be ready.\n\n## Installation\n\n```sh\n$ npm install hypercore-ready --save\n```\n\n## Usage\n\n```js\nconst ready = require('hypercore-ready')\n\nready(...hypercores, (err) =\u003e {\n  // called when all hypercores are ready\n})\n```\n\n## API\n\n### `ready(...hypercores[, callback])`\n### `ready(hypercores[, callback])`\n### `await ready(hypercores)`\n\nWaits for all given `hypercores` to be ready calling `callback(err,\npending, total)` when all are ready or when an error occurs.\n\n```js\nconst cores = [ ...hypercores ]\n\nready(...cores, callback)\n// or\nready(cores)\n// or\nawait ready(cores)\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flittle-core-labs%2Fhypercore-ready","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flittle-core-labs%2Fhypercore-ready","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flittle-core-labs%2Fhypercore-ready/lists"}