{"id":14156630,"url":"https://github.com/chimurai/jscodeshift-typescript-example","last_synced_at":"2025-04-07T13:09:57.674Z","repository":{"id":36988891,"uuid":"319109775","full_name":"chimurai/jscodeshift-typescript-example","owner":"chimurai","description":"jscodeshift typescript codemod example","archived":false,"fork":false,"pushed_at":"2025-03-30T22:46:22.000Z","size":7301,"stargazers_count":80,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T12:06:34.569Z","etag":null,"topics":["codemod","debug","jest","jscodeshift","typescript","vscode"],"latest_commit_sha":null,"homepage":"","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/chimurai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-12-06T19:06:20.000Z","updated_at":"2025-03-31T06:25:03.000Z","dependencies_parsed_at":"2023-10-28T11:23:44.869Z","dependency_job_id":"237024ca-6c6b-4544-ba0a-a6e6421d0a00","html_url":"https://github.com/chimurai/jscodeshift-typescript-example","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/chimurai%2Fjscodeshift-typescript-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chimurai%2Fjscodeshift-typescript-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chimurai%2Fjscodeshift-typescript-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chimurai%2Fjscodeshift-typescript-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chimurai","download_url":"https://codeload.github.com/chimurai/jscodeshift-typescript-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247657281,"owners_count":20974345,"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":["codemod","debug","jest","jscodeshift","typescript","vscode"],"created_at":"2024-08-17T08:07:26.079Z","updated_at":"2025-04-07T13:09:57.629Z","avatar_url":"https://github.com/chimurai.png","language":"JavaScript","readme":"# jscodeshift-typescript-example\n\n## TypeScript all the way 🚀\n\nExample usage of [jscodeshift](https://github.com/facebook/jscodeshift) _for_ TypeScript _with_ TypeScript:\n\n- TypeScript target files *.ts\n- TypeScript transformer\n- TypeScript test files\n- TypeScript fixtures\n\n## TypeScript transformer\n\nStrongly typed code and code completion with `@types/jscodeshift`\n\n![code-completion](https://raw.githubusercontent.com/chimurai/jscodeshift-typescript-example/main/docs/code-completion.gif)\n\n## Installation\n\n```shell\nnpm i\n```\n\nor\n\n```shell\nyarn\n```\n\n## Run codemod\n\n```shell\nnpx jscodeshift -t ./examples/simple-rename.ts --extensions=ts --parser=ts './**/*.ts' --print --dry\n```\n\n\u003e _Omit `--dry` to write the transformed source back to disk._\n\n## Test\n\n```shell\nnpm test\n```\n\nor\n\n```shell\nyarn test\n```\n\n## Debug\n\nUse the [pre-configured VSCode launcher](https://github.com/chimurai/jscodeshift-typescript-example/blob/main/.vscode/launch.json) to run tests and debug your transformer.\n\n![debugger](https://raw.githubusercontent.com/chimurai/jscodeshift-typescript-example/main/docs/debugger.gif)\n\n## Behind the scenes\n\nUse `@babel/parser` in [https://astexplorer.net](https://astexplorer.net) when working with the jscodeshift's [default parser](https://github.com/facebook/jscodeshift#usage-cli) (default: `babel`).\n\n## Resources \u0026 Inspiration\n\n- \u003chttps://github.com/facebook/jscodeshift/tree/master/sample\u003e\n- \u003chttps://github.com/facebook/jscodeshift/blob/master/recipes/retain-first-comment.md\u003e\n- \u003chttps://github.com/elliottsj/jscodeshift-typescript-example\u003e\n- \u003chttps://astexplorer.net\u003e\n\n## Awesome lists\n\n- \u003chttps://github.com/rajasegar/awesome-codemods\u003e\n- \u003chttps://github.com/sejoker/awesome-jscodeshift\u003e\n","funding_links":[],"categories":["vscode"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchimurai%2Fjscodeshift-typescript-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchimurai%2Fjscodeshift-typescript-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchimurai%2Fjscodeshift-typescript-example/lists"}