{"id":24228802,"url":"https://github.com/blacha/codeshift","last_synced_at":"2026-06-05T04:31:12.073Z","repository":{"id":37795818,"uuid":"405776973","full_name":"blacha/codeshift","owner":"blacha","description":"Shift ","archived":false,"fork":false,"pushed_at":"2023-09-04T17:23:16.000Z","size":163,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T07:42:19.321Z","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/blacha.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":"2021-09-12T23:35:17.000Z","updated_at":"2023-05-31T10:14:50.000Z","dependencies_parsed_at":"2025-01-14T11:44:40.161Z","dependency_job_id":"8169d206-7460-41d9-9e0c-aecef499e7d1","html_url":"https://github.com/blacha/codeshift","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blacha/codeshift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacha%2Fcodeshift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacha%2Fcodeshift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacha%2Fcodeshift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacha%2Fcodeshift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blacha","download_url":"https://codeload.github.com/blacha/codeshift/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacha%2Fcodeshift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33930307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-01-14T11:33:00.267Z","updated_at":"2026-06-05T04:31:12.055Z","avatar_url":"https://github.com/blacha.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jscodeshift transformers\n\nUsage\n\n```\njscodeshift --transform=src/ts-import-add-ext.js --parser ts :pathToTypescriptFiles\n```\n\n## src/ts-import-add-ext.js\n\nConverts Typescript files that use `import {foo} from './bar'` into ESM module imports `import {foo} from './bar.js'`\n\nExamples\n\nBefore:\n```typescript\nimport { Foo } from './bar';\nexport { Bar } from './bar';\nexport * from './baz';\n```\n\nAfter: \n\n```typescript\nimport { Foo } from './bar.js';\nexport { Bar } from './bar.js';\nexport * from './baz.js';\n```\n\n## src/ts-dirname.js\n\nConverts `__dirname` and `__filename` into ESM module constants\n\n```typescript\nimport path from 'node:path';\nimport url from 'node:url';\n\nconst __dirname = path.dirname(url.fileURLToPath(import.meta.url));\nconst __filename = url.fileURLToPath(import.meta.url);\n```\n\n## src/ospec-to-node-test.js","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacha%2Fcodeshift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblacha%2Fcodeshift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacha%2Fcodeshift/lists"}