{"id":16326688,"url":"https://github.com/chrisyip/stated-promise","last_synced_at":"2025-05-14T22:12:18.630Z","repository":{"id":138205582,"uuid":"528772485","full_name":"chrisyip/stated-promise","owner":"chrisyip","description":"StatedPromise provides a couple of methods for querying Promise state.","archived":false,"fork":false,"pushed_at":"2022-08-29T06:54:46.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-14T22:12:18.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/chrisyip.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-25T09:04:42.000Z","updated_at":"2022-08-25T09:05:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"56ae885e-cfc7-41c4-9512-76f462ec4811","html_url":"https://github.com/chrisyip/stated-promise","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/chrisyip%2Fstated-promise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisyip%2Fstated-promise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisyip%2Fstated-promise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisyip%2Fstated-promise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrisyip","download_url":"https://codeload.github.com/chrisyip/stated-promise/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254235712,"owners_count":22036966,"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":"2024-10-10T23:09:17.808Z","updated_at":"2025-05-14T22:12:18.597Z","avatar_url":"https://github.com/chrisyip.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StatedPromsie\n\nStatedPromise provides a couple of methods for querying Promise state.\n\n## Installation\n\n```shell\nnpm i stated-promise\n```\n\n## Usage\n\n```typesript\nimport { StatedPromise } from 'stated-promise'\n\nconst statedPromise = new StatedPromise(Promise.resolve(...))\n\nif (statedPromise.isPending()) {\n  // wait\n} else {\n  // promise fulfilled\n  statedPromise.getPromise().then(...)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisyip%2Fstated-promise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrisyip%2Fstated-promise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisyip%2Fstated-promise/lists"}