Use case
Framework
Owner
Correct Ts Specifiers
This package transforms import specifiers in source-code from the broken state TypeScript's compiler (
tsc
) required (prior TypeScript v5.7 RC) into proper ones. This is useful when source-code is processed by standards-compliant software like Node.js. This is a one-and-done process, and the updated source-code should be committed to your version control (ex git); thereafter, source-code import statements should be authored compliant with the ECMAScript (JavaScript) standard.Sveltekit Import And Path Simplification
This codemod simplifies the import statements and path resolution in your SvelteKit project. It replaces the usage of
resolvePath
and concatenation withbase
by using theresolveRoute
function from$app/paths
. This results in cleaner and more readable code.Deno Replace Import Assertions
This codemod helps migrate JavaScript/TypeScript files from using the deprecated import assertions syntax to the updated import attributes syntax. The change aligns with the updated proposal for import attributes and ensures compatibility with newer versions of runtimes like Deno 2 and modern browsers that have already removed support for import assertions.
Deno Import Stl Functions
This codemod updates removed Deno function calls in Deno v2 to their new equivalents from the standard library It also automatically adds the necessary import statements from the appropriate modules.
React Router/6/Switch To Routes
This codemod updates
Switch
components toRoutes
in React Router, in line with React Router v6 and newer. It also adjusts the imports, replacingSwitch
withRoutes
inreact-router-dom
import statements.Minimatch To Named Imports
Example
This codemod turns default import statements for minimatch to named imports.
Webpack To Rspack/Migrate Html Plugin
Change import and usage of from html-webpack-tags-plugin to use includedhtml-rspack-tags-plugin.
Reka Ui/Import Update
The primary change in imports is replacing radix-vue with reka-ui.
Three/R168/ViewportBottomLeft To ViewportUV.FlipY()
This codemod replaces viewportBottomLeft with viewportUV.flipY()
Next/15/Refactor Imports From @Next/Font To Next/Font
Refactor Imports from @next/font to next/font
@E18e/Regexp.Prototype.Flags
Introduction
@E18e/Md5
Introduction
Next/13/Built In Next Font
This codemod transforms the module specifier
@next/font/*
in import statements intonext/font/*
.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Angular Material Imports
This project provides a codemod script to update Angular Material imports to their new module paths, suitable for Angular v9 and beyond. It leverages jscodeshift to transform the import statements in your codebase.