{"id":16527761,"url":"https://github.com/infctr/babel-plugin-codemod-named-export-declarations","last_synced_at":"2025-07-14T11:12:39.516Z","repository":{"id":32818014,"uuid":"143428189","full_name":"infctr/babel-plugin-codemod-named-export-declarations","owner":"infctr","description":"Transform export object literals to single named export declarations","archived":false,"fork":false,"pushed_at":"2022-12-09T13:21:13.000Z","size":594,"stargazers_count":0,"open_issues_count":15,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-16T02:17:57.589Z","etag":null,"topics":[],"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/infctr.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":"2018-08-03T13:03:41.000Z","updated_at":"2019-07-11T09:10:55.000Z","dependencies_parsed_at":"2023-01-14T22:30:50.291Z","dependency_job_id":null,"html_url":"https://github.com/infctr/babel-plugin-codemod-named-export-declarations","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/infctr/babel-plugin-codemod-named-export-declarations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infctr%2Fbabel-plugin-codemod-named-export-declarations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infctr%2Fbabel-plugin-codemod-named-export-declarations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infctr%2Fbabel-plugin-codemod-named-export-declarations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infctr%2Fbabel-plugin-codemod-named-export-declarations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infctr","download_url":"https://codeload.github.com/infctr/babel-plugin-codemod-named-export-declarations/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infctr%2Fbabel-plugin-codemod-named-export-declarations/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265281831,"owners_count":23739886,"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-11T17:36:41.956Z","updated_at":"2025-07-14T11:12:39.483Z","avatar_url":"https://github.com/infctr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# babel-plugin-codemod-named-export-declarations\n\nThis plugin replaces `export` object literal declaration with corresponding named export declarations with Typescript support.\n\n## Example\n\n**In**\n\n```javascript\ntype IFoo = string;\n\nconst foo: IFoo = 'foo';\n\nexport { foo, IFoo };\n```\n\n**Out**\n\n```javascript\nexport type IFoo = string;\n\nexport const foo: IFoo = 'foo';\n```\n\n## Installation\n\n```sh\nyarn add -D babel-plugin-codemod-named-export-declarations\n```\n\n## Usage\n\n### Via CLI (recommended)\n\nRun transforms on your files with excellent [babel-codemod](https://github.com/square/babel-codemod)! Considered it's installed locally:\n\n```sh\n./node_modules/.bin/codemod -p babel-plugin-codemod-named-export-declarations script.js\n```\n\n`babel-codemod` enables other plugins for parsing files out of the box (eg. jsx, typescript).\n\n### Via Node API\n\n```javascript\nrequire('babel-core').transform('code', {\n  plugins: ['codemod-named-export-declarations']\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfctr%2Fbabel-plugin-codemod-named-export-declarations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfctr%2Fbabel-plugin-codemod-named-export-declarations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfctr%2Fbabel-plugin-codemod-named-export-declarations/lists"}