{"id":13532797,"url":"https://github.com/aws/aws-sdk-js-codemod","last_synced_at":"2025-04-13T00:47:07.448Z","repository":{"id":42978318,"uuid":"464663888","full_name":"aws/aws-sdk-js-codemod","owner":"aws","description":"Codemod scripts to update AWS SDK for JavaScript APIs.","archived":false,"fork":false,"pushed_at":"2025-04-02T05:04:45.000Z","size":10866,"stargazers_count":76,"open_issues_count":40,"forks_count":10,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-13T00:46:53.117Z","etag":null,"topics":["ast","aws","aws-sdk","aws-sdk-js","javascript","jscodeshift","jscodeshift-codemod","nodejs","recast"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit-0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aws.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-28T22:25:06.000Z","updated_at":"2025-03-29T22:19:46.000Z","dependencies_parsed_at":"2023-11-22T05:31:04.985Z","dependency_job_id":"7fd9ede5-c896-498c-9efe-0154f6f5d7d0","html_url":"https://github.com/aws/aws-sdk-js-codemod","commit_stats":{"total_commits":720,"total_committers":3,"mean_commits":240.0,"dds":"0.27083333333333337","last_synced_commit":"8c2d5f463330543a6f06a914451b257877ae8953"},"previous_names":["aws/aws-sdk-js-codemod","awslabs/aws-sdk-js-codemod"],"tags_count":174,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws%2Faws-sdk-js-codemod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws%2Faws-sdk-js-codemod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws%2Faws-sdk-js-codemod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws%2Faws-sdk-js-codemod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aws","download_url":"https://codeload.github.com/aws/aws-sdk-js-codemod/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650433,"owners_count":21139672,"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":["ast","aws","aws-sdk","aws-sdk-js","javascript","jscodeshift","jscodeshift-codemod","nodejs","recast"],"created_at":"2024-08-01T07:01:13.787Z","updated_at":"2025-04-13T00:47:07.425Z","avatar_url":"https://github.com/aws.png","language":"TypeScript","funding_links":[],"categories":["JavaScript","aws"],"sub_categories":[],"readme":"# aws-sdk-js-codemod\n\nThis repository contains a collection of codemod scripts for use with\n[JSCodeshift][jscodeshift] that help update [AWS SDK for JavaScript][aws-sdk-js]\nAPIs.\n\nThe `aws-sdk-js-codemod` CLI is a lightweight wrapper over jscodeshift.\nIt processes `--help`, `--version` and `--transform` options before passing them\ndownstream.\n\nYou can provide names of the custom transforms instead of a local path or url:\n\n     v2-to-v3  Converts AWS SDK for JavaScript APIs in a Javascript/TypeScript\n               codebase from version 2 (v2) to version 3 (v3).\n\nPlease review the code change thoroughly for required functionality before deploying it to production.\nIf the transformation is not complete or is incorrect, please report the issue on GitHub.\n\n## Prerequisites\n\nTo use aws-sdk-js-codemod, please install [Node.js][install-nodejs].\n\n## Usage\n\n- Optionally execute dry-run for the transform, and print transformed files on stdout:\n  ```console\n  npx aws-sdk-js-codemod@latest --dry --print -t v2-to-v3 PATH...\n  ```\n- Run transform, and make changes to files:\n  ```console\n  npx aws-sdk-js-codemod@latest -t v2-to-v3 PATH...\n  ```\n\n## Example\n\n```console\n$ cat example.ts\nimport AWS from \"aws-sdk\";\nconst client = new AWS.DynamoDB();\nconst response = await client.listTables({}).promise();\n\n$ npx aws-sdk-js-codemod@latest -t v2-to-v3 example.ts\n\n$ cat example.ts\nimport { DynamoDB } from \"@aws-sdk/client-dynamodb\";\nconst client = new DynamoDB();\nconst response = await client.listTables({});\n```\n\nFor a summary of supported transformations, check [TRANSFORMATIONS.md](TRANSFORMATIONS.md).\n\n## License\n\nThis library is licensed under the MIT-0 License. See the LICENSE file.\n\n[aws-sdk-js]: https://aws.amazon.com/sdk-for-javascript/\n[install-nodejs]: https://nodejs.dev/learn/how-to-install-nodejs\n[jscodeshift]: https://github.com/facebook/jscodeshift\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faws%2Faws-sdk-js-codemod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faws%2Faws-sdk-js-codemod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faws%2Faws-sdk-js-codemod/lists"}