{"id":18568001,"url":"https://github.com/willybrauner/deferred-promise","last_synced_at":"2025-04-10T05:32:49.022Z","repository":{"id":55097899,"uuid":"328486741","full_name":"willybrauner/deferred-promise","owner":"willybrauner","description":"🙏🏽 Create a deferred promise who can be resolved or rejected from anywhere.","archived":false,"fork":false,"pushed_at":"2021-08-25T10:24:09.000Z","size":649,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T16:47:24.664Z","etag":null,"topics":["javascript","lib","library","promise","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@wbe/deferred-promise","language":"TypeScript","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/willybrauner.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":"2021-01-10T21:51:55.000Z","updated_at":"2023-03-17T12:32:55.000Z","dependencies_parsed_at":"2022-08-14T11:50:47.290Z","dependency_job_id":null,"html_url":"https://github.com/willybrauner/deferred-promise","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willybrauner%2Fdeferred-promise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willybrauner%2Fdeferred-promise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willybrauner%2Fdeferred-promise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willybrauner%2Fdeferred-promise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willybrauner","download_url":"https://codeload.github.com/willybrauner/deferred-promise/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248163269,"owners_count":21057898,"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":["javascript","lib","library","promise","typescript"],"created_at":"2024-11-06T22:28:24.435Z","updated_at":"2025-04-10T05:32:44.281Z","avatar_url":"https://github.com/willybrauner.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @wbe/deferred-promise\n\nCreate a deferred promise who can be resolved or rejected from anywhere.\n\n![](https://img.shields.io/npm/v/@wbe/deferred-promise/latest.svg)\n![](https://img.shields.io/bundlephobia/minzip/@wbe/deferred-promise.svg)\n![](https://img.shields.io/npm/dt/@wbe/deferred-promise.svg)\n![](https://img.shields.io/npm/l/@wbe/deferred-promise.svg)\n\n## Installation\n\n```shell script\n$ npm install -s @wbe/deferred-promise\n```\n\n## How to use\n\n```js\nimport { deferredPromise } from \"@wbe/deferred-promise\";\n\n// create deferred promise\nconst deferred = deferredPromise();\n\ndeferred.promise.then(() =\u003e {\n  // deferredPromise is resolved!\n});\n\n// when needed, resolve this promise\ndeferred.resolve();\n\n// or reject it\ndeferred.reject();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillybrauner%2Fdeferred-promise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillybrauner%2Fdeferred-promise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillybrauner%2Fdeferred-promise/lists"}