{"id":16469683,"url":"https://github.com/imfly/ddn-codemod","last_synced_at":"2025-09-17T15:48:24.836Z","repository":{"id":59038054,"uuid":"535147037","full_name":"imfly/ddn-codemod","owner":"imfly","description":"代码升级工具","archived":false,"fork":false,"pushed_at":"2022-09-10T23:54:04.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T18:49:51.610Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imfly.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":"2022-09-10T23:52:20.000Z","updated_at":"2022-09-11T12:59:05.000Z","dependencies_parsed_at":"2022-09-11T03:30:53.553Z","dependency_job_id":null,"html_url":"https://github.com/imfly/ddn-codemod","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/imfly%2Fddn-codemod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imfly%2Fddn-codemod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imfly%2Fddn-codemod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imfly%2Fddn-codemod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imfly","download_url":"https://codeload.github.com/imfly/ddn-codemod/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241061946,"owners_count":19902794,"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-11T12:08:32.215Z","updated_at":"2025-09-17T15:48:19.792Z","avatar_url":"https://github.com/imfly.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"DDN Codemod \n-----------------\n\n这是一套代码升级工具集。当有大版本升级的时候，往往需要大量的代码重构，手动耗时费力，而且容易出错，一定要使用工具。这里感谢 [gogocode]()，该工具简单直接，使用习惯非常像传统的“查找/替换”，容易上手。不过成熟度不高，文档也不是很完善，希望它越做越好。\n\n## 目标\n\n支持以下常用工具的升级\n\n- [x] React Native StyleSheet 样式批量更新 【不通用 不要对生产代买进行操作】\n- [x] React Native react-navigation  v4/5 升级到 v6\n- [ ] React\n- [ ] 其他持续添加\n\n## 使用\n\n命令行调用方式：\n\n```\n$ ddn-codemod ./input.tsx\n```\n\n如果对当前文件夹下的全部文件进行转换，命令如下：\n\n```\n$ ddn-codemod\n```\n\n提示你是否覆盖文件，选择 'Y’ 即可\n\n注：如果出现 zsh 无法找到ddn-codemod命令的错误，请运行下面的命令\n\n```\n$ chmod u+x bin/cli.js // 给它执行权限\n```\n\n## TODO\n\n- 去除样式的引号；\n- 去除...引用；\n- 迁移 setState\n- 。。。\n\n\n## 授权\n\nMIT Licence","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimfly%2Fddn-codemod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimfly%2Fddn-codemod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimfly%2Fddn-codemod/lists"}