{"id":13532735,"url":"https://github.com/albinekb/co-to-async","last_synced_at":"2025-04-01T21:30:53.575Z","repository":{"id":11131643,"uuid":"68471658","full_name":"albinekb/co-to-async","owner":"albinekb","description":"🦄 Take the step from co.wrap to async/await automagically ","archived":true,"fork":false,"pushed_at":"2023-01-09T06:29:46.000Z","size":305,"stargazers_count":7,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T07:53:30.593Z","etag":null,"topics":["ast","cli","co","codemod","jscodeshift","transform"],"latest_commit_sha":null,"homepage":"","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/albinekb.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":"2016-09-17T18:46:40.000Z","updated_at":"2023-01-09T06:29:55.000Z","dependencies_parsed_at":"2023-01-13T16:20:56.115Z","dependency_job_id":null,"html_url":"https://github.com/albinekb/co-to-async","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albinekb%2Fco-to-async","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albinekb%2Fco-to-async/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albinekb%2Fco-to-async/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albinekb%2Fco-to-async/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/albinekb","download_url":"https://codeload.github.com/albinekb/co-to-async/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246712952,"owners_count":20821824,"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":["ast","cli","co","codemod","jscodeshift","transform"],"created_at":"2024-08-01T07:01:13.351Z","updated_at":"2025-04-01T21:30:53.293Z","avatar_url":"https://github.com/albinekb.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# co-to-async\n\n# ⚠️⚠️⚠️ ARCHIVED - This tool is no longer useful, native promises have been around for a while now ;) ⚠️⚠️⚠️\n\n## Are you using [co](github.com/tj/co)?\n\nThis CLI utility will help you convert your code to use native **async/await**\n\n### example\nBefore:\n\n```js\nconst fn = co.wrap(function* (val) {\n  return yield Promise.resolve(val);\n})\n\nfn(true).then(function (val) {\n\n})\n```\n\nAfter:\n```js\nconst fn = async function (val) {\n  return await Promise.resolve(val);\n}\n\nfn(true).then(function (val) {\n\n})\n```\n\n## install\n\n```sh\nnpm install --global co-to-async\n```\n\n## usage\n\nRun `co-to-async` in a project folder, **this will not change any files**\n\nWhen you're ready to make the changes, run `co-to-async --save`\n\n*Get more help via `co-to-async --help`*\n\n🎉\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbinekb%2Fco-to-async","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbinekb%2Fco-to-async","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbinekb%2Fco-to-async/lists"}