
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
aws-sdk-js-codemod
Advanced tools
Collection of codemod scripts that help update AWS SDK for JavaScript APIs
This repository contains a collection of codemod scripts for use with JSCodeshift that help update AWS SDK for JavaScript APIs.
The aws-sdk-js-codemod
CLI is a lightweight wrapper over jscodeshift.
It processes --help
, --version
and --transform
options before passing them
downstream.
You can provide names of the custom transforms instead of a local path or url:
v2-to-v3 Converts AWS SDK for JavaScript APIs in a Javascript/TypeScript
codebase from version 2 (v2) to version 3 (v3).
Please review the code change thoroughly for required functionality before deploying it to production. If the transformation is not complete or is incorrect, please report the issue on GitHub.
To use aws-sdk-js-codemod, please install Node.js.
npx aws-sdk-js-codemod@latest --dry --print -t v2-to-v3 PATH...
npx aws-sdk-js-codemod@latest -t v2-to-v3 PATH...
$ cat example.ts
import AWS from "aws-sdk";
const client = new AWS.DynamoDB();
const response = await client.listTables({}).promise();
$ npx aws-sdk-js-codemod@latest -t v2-to-v3 example.ts
$ cat example.ts
import { DynamoDB } from "@aws-sdk/client-dynamodb";
const client = new DynamoDB();
const response = await client.listTables({});
For a summary of supported transformations, check TRANSFORMATIONS.md.
This library is licensed under the MIT-0 License. See the LICENSE file.
FAQs
Collection of codemod scripts that help update AWS SDK for JavaScript APIs
The npm package aws-sdk-js-codemod receives a total of 8,169 weekly downloads. As such, aws-sdk-js-codemod popularity was classified as popular.
We found that aws-sdk-js-codemod demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.