{"id":13533897,"url":"https://github.com/flow/flow-codemod","last_synced_at":"2025-04-01T22:31:02.046Z","repository":{"id":86629746,"uuid":"60132126","full_name":"flow/flow-codemod","owner":"flow","description":"Flow codemod scripts","archived":true,"fork":false,"pushed_at":"2019-07-15T15:19:18.000Z","size":17,"stargazers_count":15,"open_issues_count":2,"forks_count":3,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-05-21T13:55:49.560Z","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/flow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-06-01T00:11:06.000Z","updated_at":"2023-08-06T16:57:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"2fd763f7-14fb-413d-adb8-86801462efd3","html_url":"https://github.com/flow/flow-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/flow%2Fflow-codemod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flow%2Fflow-codemod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flow%2Fflow-codemod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flow%2Fflow-codemod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flow","download_url":"https://codeload.github.com/flow/flow-codemod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246720458,"owners_count":20822907,"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-08-01T07:01:24.099Z","updated_at":"2025-04-01T22:31:01.805Z","avatar_url":"https://github.com/flow.png","language":"JavaScript","readme":"# flow-codemod\n\nThis repository contains a collection of codemod scripts for use with\n[JSCodeshift](https://github.com/facebook/jscodeshift) that help update\nFlowified JS code.\n\n### Setup \u0026 Run\n\n  * `npm install -g jscodeshift`\n  * `git clone https://github.com/flowtype/flow-codemod.git`\n  * `jscodeshift -t \u003ccodemod-script\u003e \u003cpath\u003e`\n\t(but note that individual transforms may require additional options, as documented)\n  * Use the `-d` option for a dry-run and use `-p` to print the output for comparison\n\n##### KNOWN ISSUES\n\n* jscodeshift currently uses Babel 5, which fails to parse certain JS idioms.\nFiles that fail to parse will not be transformed, unfortunately.\n\n### Included Scripts\n\nThe following codemods can be found under the `transforms` directory:\n\n#### `strict-type-args`\n\nAdds explicit arguments to polymorphic type application expressions,\nbased on errors from Flow. For example,\n\n```\nlet map: Map = ...\n```\n\n...becomes\n\n```\nlet map: Map\u003cany, any\u003e = ...\n```\n\nThis prepares code for an upcoming change to strict type argument processing. For instructions and more info, see documentation in the transform subdirectory.\n\n## License\n\nflow-codemod is MIT licensed, as found in the [LICENSE](LICENSE) file.\n","funding_links":[],"categories":["Misc"],"sub_categories":["ant-design"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflow%2Fflow-codemod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflow%2Fflow-codemod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflow%2Fflow-codemod/lists"}