{"id":23790022,"url":"https://github.com/blackglory/wait-for","last_synced_at":"2025-07-30T21:33:30.006Z","repository":{"id":44955728,"uuid":"266822830","full_name":"BlackGlory/wait-for","owner":"BlackGlory","description":"🌲 A module for waiting for things to happen.","archived":false,"fork":false,"pushed_at":"2025-05-22T15:54:47.000Z","size":1423,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-03T07:09:54.425Z","etag":null,"topics":["browser","esm","library","npm-package","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@blackglory/wait-for","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/BlackGlory.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2020-05-25T16:04:48.000Z","updated_at":"2025-05-22T15:54:51.000Z","dependencies_parsed_at":"2024-06-20T23:22:17.135Z","dependency_job_id":"ecf38190-5bfd-4717-8509-786ba2575e3a","html_url":"https://github.com/BlackGlory/wait-for","commit_stats":{"total_commits":121,"total_committers":2,"mean_commits":60.5,"dds":0.06611570247933884,"last_synced_commit":"0b347c6084d538bf4305b814829c267fb63659ed"},"previous_names":[],"tags_count":44,"template":false,"template_full_name":null,"purl":"pkg:github/BlackGlory/wait-for","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fwait-for","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fwait-for/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fwait-for/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fwait-for/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlackGlory","download_url":"https://codeload.github.com/BlackGlory/wait-for/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fwait-for/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267945178,"owners_count":24170215,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["browser","esm","library","npm-package","typescript"],"created_at":"2025-01-01T17:18:07.990Z","updated_at":"2025-07-30T21:33:29.990Z","avatar_url":"https://github.com/BlackGlory.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wait-for\nA module for waiting for things to happen.\n\n## Install\n```sh\nnpm install --save @blackglory/wait-for\n# or\nyarn add @blackglory/wait-for\n```\n\n## API\n### waitForDOMChanged\n```ts\nfunction waitForDOMChanged(): Promies\u003cvoid\u003e\n```\n\n### waitForAttached\n```ts\nfunction waitForAttached(...nodes: Node[]): Promise\u003cvoid\u003e\n```\n\n### waitForDetached\n```ts\nfunction waitForDetached(...nodes: Node[]): Promise\u003cvoid\u003e\n```\n\n### waitForElementsMatchingSelectorAttached\n```ts\nfunction waitForElementsMatchingSelectorAttached(\n  selector: string\n): Promise\u003cElement[]\u003e\n```\n\n### waitForAllElementsMatchingSelectorDetached\n```ts\nfunction waitForAllElementsMatchingSelectorDetached(\n  selector: string\n): Promise\u003cvoid\u003e\n```\n\n### waitForEventTarget\n```ts\nfunction waitForEventTarget\u003cT extends EventTarget\u003e(\n  target: T\n, event: string\n, signal?: AbortSignal\n): Promise\u003cEvent\u003e\n```\n\n### waitForEventEmitter\n```ts\nfunction waitForEventEmitter\u003cT extends EventEmitter\u003e(\n  target: T\n, event: string\n, signal?: AbortSignal\n): Promise\u003cunknown[]\u003e\n```\n\n### waitForEmitter\n```ts\nfunction waitForEmitter\u003c\n  EventToArgs extends Record\u003cstring, unknown[]\u003e\n, Event extends keyof EventToArgs\n\u003e(\n  target: Emitter\u003cEventToArgs\u003e\n, event: Event\n, signal?: AbortSignal\n): Promise\u003cEventToArgs[Event]\u003e\n```\n\n### waitForDOMContentLoaded\n```ts\nfunction waitForDOMContentLoaded(): Promise\u003cvoid\u003e\n```\n\n### waitForLoad\n```ts\nfunction waitForLoad(): Promise\u003cvoid\u003e\n```\n\n### waitForComplete\n```ts\nfunction waitForComplete(): Promise\u003cvoid\u003e\n```\n\n### waitForInteractiveOrComplete\n```ts\nfunction waitForInteractiveOrComplete(): Promise\u003cvoid\u003e\n```\n\n### waitForFunction\n```ts\nfunction waitForFunction\u003cT\u003e(\n  fn: () =\u003e T | PromiseLike\u003cT\u003e\n, interval: number = 0\n): Promise\u003cT\u003e\n```\n\n### waitForTimeout\n```ts\nfunction waitForTimeout(ms: number, signal?: AbortSignal): Promise\u003cvoid\u003e\n```\n\n### waitForStateChanged\n```ts\nfunction waitForStateChanged(): Promise\u003cvoid\u003e\n```\n\n### waitForUrlChanged\n```ts\nfunction waitForUrlChanged(): Promise\u003cvoid\u003e\n```\n\n### waitForAllMacrotasksProcessed\n```ts\nfunction waitForAllMacrotasksProcessed(): Promise\u003cvoid\u003e\n```\n\n### waitForAllMicrotasksProcessed\n```ts\nfunction waitForAllMicrotasksProcessed(): Promise\u003cvoid\u003e\n```\n\n### waitForIdleCallback\n```ts\nfunction waitForIdleCallback(options?: IdleRequestOptions): Promise\u003cIdleDeadline\u003e\n```\n\n### waitForAnimationFrame\n```ts\nfunction waitForAnimationFrame(): Promise\u003cDOMHighResTimeStamp\u003e\n```\n\n### waitForVideoFrameCallback\n```ts\nfunction waitForVideoFrameCallback(\n  video: HTMLVideoElement\n): Promise\u003cParameters\u003cVideoFrameRequestCallback\u003e\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackglory%2Fwait-for","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackglory%2Fwait-for","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackglory%2Fwait-for/lists"}