{"id":27935813,"url":"https://github.com/rt2zz/readydevice","last_synced_at":"2025-08-04T01:36:56.637Z","repository":{"id":57348793,"uuid":"41941851","full_name":"rt2zz/readydevice","owner":"rt2zz","description":"Avoid coordinated bootstrap sequences or singleton pseudo-global devices","archived":false,"fork":false,"pushed_at":"2015-09-04T23:34:19.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T21:47:12.484Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rt2zz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-04T23:27:28.000Z","updated_at":"2015-09-04T23:29:24.000Z","dependencies_parsed_at":"2022-09-16T05:00:17.404Z","dependency_job_id":null,"html_url":"https://github.com/rt2zz/readydevice","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rt2zz%2Freadydevice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rt2zz%2Freadydevice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rt2zz%2Freadydevice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rt2zz%2Freadydevice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rt2zz","download_url":"https://codeload.github.com/rt2zz/readydevice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252831181,"owners_count":21810780,"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":"2025-05-07T06:50:45.937Z","updated_at":"2025-05-07T06:50:46.517Z","avatar_url":"https://github.com/rt2zz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# readydevice\nAvoid coordinated bootstrap sequences or singleton pseudo-global devices.\n\n## Usage\nIt is not particularly pretty, but it works and does not bleed complexity.\n```js\nvar readydevice = require('readydevice')\n\nvar getSomething = readydevice((ready) =\u003e {\n  someAsyncSetup(function(something){\n    ready(something)\n  })\n})\n\n//...later\n\ngetSomething(function(something){\n  //If the device is already `ready` it will immediately fire the callback.\n  //Otherwise the callback will be queued and invoked once the device is ready.\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frt2zz%2Freadydevice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frt2zz%2Freadydevice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frt2zz%2Freadydevice/lists"}