{"id":18522591,"url":"https://github.com/poorlydefinedbehaviour/future","last_synced_at":"2025-05-14T18:11:06.196Z","repository":{"id":55298065,"uuid":"227915888","full_name":"PoorlyDefinedBehaviour/future","owner":"PoorlyDefinedBehaviour","description":"Promises implementation","archived":false,"fork":false,"pushed_at":"2021-01-05T18:44:42.000Z","size":8,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-17T05:28:43.218Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/PoorlyDefinedBehaviour.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":"2019-12-13T20:21:29.000Z","updated_at":"2021-11-08T09:10:38.000Z","dependencies_parsed_at":"2022-08-14T20:01:59.291Z","dependency_job_id":null,"html_url":"https://github.com/PoorlyDefinedBehaviour/future","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoorlyDefinedBehaviour%2Ffuture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoorlyDefinedBehaviour%2Ffuture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoorlyDefinedBehaviour%2Ffuture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoorlyDefinedBehaviour%2Ffuture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PoorlyDefinedBehaviour","download_url":"https://codeload.github.com/PoorlyDefinedBehaviour/future/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254198512,"owners_count":22030966,"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-11-06T17:32:12.396Z","updated_at":"2025-05-14T18:11:06.143Z","avatar_url":"https://github.com/PoorlyDefinedBehaviour.png","language":"TypeScript","readme":"## Something that looks like a JavaScript Promise\n\n```ts\nimport axios from \"axios\";\nimport Future from \"./future/Future\";\n\nfunction main(): void {\n  new Future\u003cany\u003e((resolve, reject) =\u003e {\n    axios\n      .get(`https://api.github.com/users/poorlydefinedbehaviour/repos`)\n      .then(response =\u003e resolve(response))\n      .catch(error =\u003e reject(error));\n  })\n    .then(response =\u003e response.data)\n    .then(data =\u003e data[0].id)\n    .then(id =\u003e console.log(`id =\u003e ${id}`))\n    .catch(error =\u003e console.log(\"error\", error));\n}\nmain();\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoorlydefinedbehaviour%2Ffuture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpoorlydefinedbehaviour%2Ffuture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoorlydefinedbehaviour%2Ffuture/lists"}