{"id":18657808,"url":"https://github.com/lightsofapollo/co-promise","last_synced_at":"2025-11-05T22:30:21.704Z","repository":{"id":16792247,"uuid":"19550802","full_name":"lightsofapollo/co-promise","owner":"lightsofapollo","description":"Wrapper for co so it returns promises not thunks ","archived":false,"fork":false,"pushed_at":"2015-01-28T06:17:51.000Z","size":144,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-28T19:49:08.697Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lightsofapollo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-07T21:21:35.000Z","updated_at":"2015-07-25T15:45:18.000Z","dependencies_parsed_at":"2022-09-03T14:30:42.157Z","dependency_job_id":null,"html_url":"https://github.com/lightsofapollo/co-promise","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/lightsofapollo%2Fco-promise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsofapollo%2Fco-promise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsofapollo%2Fco-promise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsofapollo%2Fco-promise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lightsofapollo","download_url":"https://codeload.github.com/lightsofapollo/co-promise/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239475960,"owners_count":19645041,"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-07T07:29:55.140Z","updated_at":"2025-11-05T22:30:21.657Z","avatar_url":"https://github.com/lightsofapollo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# co-promise\n\nThis does what you would expect and brings co a lot closer to what the\nasync function proposal for es7 does.\n\n```js\nvar co = require('co-promise');\n\nco(function* (err, value) {\n}).\nthen(function() {\n}).\ncatch(function() {\n});\n\n```\n\n## Important Notes\n\nNormal co is likely faster so using co-promise only where you need to\nreturn a promise instead of a thunk (like to another api which expects a\npromise). This is generally okay since co-promise is only needed for the\nvery top level generator the rest of the \"yieldables\" will use normal co\nfunctionality and not be wrapped with an extra layer of promises.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightsofapollo%2Fco-promise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightsofapollo%2Fco-promise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightsofapollo%2Fco-promise/lists"}