{"id":16682629,"url":"https://github.com/jchip/defer","last_synced_at":"2025-06-22T02:37:44.471Z","repository":{"id":66137294,"uuid":"217586215","full_name":"jchip/defer","owner":"jchip","description":"Promise defer","archived":false,"fork":false,"pushed_at":"2019-10-25T17:49:59.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T15:52:26.017Z","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/jchip.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":"2019-10-25T17:46:27.000Z","updated_at":"2019-10-25T17:50:01.000Z","dependencies_parsed_at":"2023-03-23T23:31:17.970Z","dependency_job_id":null,"html_url":"https://github.com/jchip/defer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jchip/defer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jchip%2Fdefer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jchip%2Fdefer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jchip%2Fdefer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jchip%2Fdefer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jchip","download_url":"https://codeload.github.com/jchip/defer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jchip%2Fdefer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261225796,"owners_count":23127202,"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-12T14:08:07.367Z","updated_at":"2025-06-22T02:37:39.454Z","avatar_url":"https://github.com/jchip.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# defer\n\n```js\nconst makeDefer = require(\"@xarc/defer\");\n\nconst defer = makeDefer();\n\nsetTimeout(() =\u003e defer.resolve(\"test\"), 100);\n\ndefer.promise.then(x =\u003e console.log(\"defer promise resolved\", x));\n```\n\n## Using custom Promise\n\n```js\nconst Promise = require(\"bluebird\");\nconst makeDefer = require(\"@xarc/defer\");\n\nconst defer = makeDefer(Promise);\n```\n\n## API\n\n```js\nmakeDefer([Promise]);\n```\n\nReturns defer object:\n\n```js\n{\n  promise, resolve, reject;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjchip%2Fdefer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjchip%2Fdefer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjchip%2Fdefer/lists"}