{"id":18757718,"url":"https://github.com/libotony/babel-plugin-transform-bluebird-co","last_synced_at":"2025-12-01T05:30:19.279Z","repository":{"id":83586332,"uuid":"65000241","full_name":"libotony/babel-plugin-transform-bluebird-co","owner":"libotony","description":"replace promise with bluebird and co with co-bluebird","archived":false,"fork":false,"pushed_at":"2016-08-29T04:09:58.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T03:46:25.159Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/babel-plugin-transform-bluebird-co","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/libotony.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":"2016-08-05T07:55:40.000Z","updated_at":"2016-08-05T09:16:41.000Z","dependencies_parsed_at":"2023-07-25T21:46:18.376Z","dependency_job_id":null,"html_url":"https://github.com/libotony/babel-plugin-transform-bluebird-co","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"82d7f27b4feeb8575b12e1ab85821f6063958375"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libotony%2Fbabel-plugin-transform-bluebird-co","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libotony%2Fbabel-plugin-transform-bluebird-co/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libotony%2Fbabel-plugin-transform-bluebird-co/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libotony%2Fbabel-plugin-transform-bluebird-co/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libotony","download_url":"https://codeload.github.com/libotony/babel-plugin-transform-bluebird-co/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239647204,"owners_count":19674115,"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-07T17:44:25.477Z","updated_at":"2025-12-01T05:30:18.978Z","avatar_url":"https://github.com/libotony.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"babel-plugin-transform-bluebird-co\n---\n\nreplace [co](https://github.com/tj/co) with  [bluebird-co(high performace co)](https://github.com/novacrazy/bluebird-co) 、\nreplace [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) with  [bluebird](https://github.com/petkaantonov/bluebird#readme) plugin.\n\nThis plugin is aiming to transform base `Promise、async/await、co` to high performace `Bluebird、Bluebird.coroutine、bluebird-co`.So the suggest usage is use this plugin along with `transform-async-to-module-method`;\n\n\nInstallation\n---\n```bash\nnpm install bluebird bluebird-co --save\nnpm install babel-plugin-transform-bluebird-co babel-plugin-transform-async-to-module-method --save-dev\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\n    \"transform-bluebird-co\",\n    [\n      \"transform-async-to-module-method\",\n      {\n        \"module\": \"bluebird-co\",\n        \"method\": \"coroutine\"\n     }]\n  ]\n}\n```\n\nDevelopment\n---\nRequirement global\n* NodeJS v5.11.0\n* Npm v3.8.6\n\n```bash\ngit clone https://github.com/libotony/babel-plugin-transform-bluebird-co\ncd babel-plugin-transform-bluebird-co\nnpm install\n\nnpm test\n```\nThanks\n---\n[babel-plugin-transform-bluebird](https://github.com/59naga/babel-plugin-transform-bluebird)\n\nLicense\n---\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibotony%2Fbabel-plugin-transform-bluebird-co","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibotony%2Fbabel-plugin-transform-bluebird-co","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibotony%2Fbabel-plugin-transform-bluebird-co/lists"}