Use case
Framework
Owner
@Nodejs/Correct Ts Specifiers
This package transforms import specifiers from the old
tsc
(TypeScript's compiler) requirement of using.js
file extensions in source-code to import files that are actually typescript; the corrected specifiers enable source-code to be runnable by standards-compliant software like Node.js.Liz/React Router/Headers Export
This is a codemod that automatically adds the required
headers
export to pages usingauthenticate.admin()
.React/19/Remove Forward Ref
React.forwardRef will be deprecated for Function Components in near future. This codemod removes forwardRef function.
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Lodash/2/Es Toolkit/Migrate
This codemod automates the migration from Lodash library to es-toolkit package.
Launchdarkly To Openfeature Nodejs Update Imports
This Codemod helps to convert DevCycle Node.js SDK implementations to the OpenFeature Node.js SDK using the DevCycle Provider. It handles the first step of the conversion by updating the packages imports:
Devcycle To Openfeature Nodejs Workflow
This Codemod runs a series of DevCycle Codemods in a workflow to convert your Node.js project from using DevCycle's Node.js Server SDK to using OpenFeature's Node.js SDK with DevCycle's OpenFeature Provider.
Devcycle To Openfeature Nodejs Update Imports
This Codemod helps to convert DevCycle Node.js SDK implementations to the OpenFeature Node.js SDK using the DevCycle Provider. It handles the first step of the conversion by updating the packages imports:
Vercel Postgres To Neon
This is a codemod created with
codemod init
.Tiptap 2 Migrate Imports
This is a codemod created with
codemod init
.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Poulet42/Declare Ts Services
Example
Correct Ts Specifiers
This package transforms import specifiers from the old
tsc
(TypeScript's compiler) requirement of using.js
file extensions in source-code to import files that are actually typescript; the corrected specifiers enable source-code to be runnable by standards-compliant software like Node.js.Sveltekit Vite Preprocess Migration
This codemod updates import paths and ensures compatibility with changes in library structures. In this example, it modifies the import statement for vitePreprocess to reflect updates in the library's API.
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.Goto To Location Href
Codemod Description
This codemod is designed to replace specific patterns in TypeScript files with updated code logic. It transforms instances of
goto($A)
intowindow.location.href = $A;
when the$A
value is a URL starting withhttp://
orhttps://
. This refactor makes external navigation more explicit by usingwindow.location.href
.Dynamic To Static Env Transformer
This codemod transforms import {$A} from '$env/dynamic/public'; and import {$A} from '$env/dynamic/private'; into their static counterparts, replacing them with import {$A} from '$env/static/public'; and import {$A} from '$env/static/private';, respectively. It ensures compatibility for prerendered pages and static deployments.
Add Status To Error Handling
This codemod improves error handling in SvelteKit by updating the way errors are returned in the load function. In SvelteKit 1, errors were handled inconsistently, often missing the status property or failing to trigger the handleError hook. SvelteKit 2 standardizes error handling by automatically including the status and message properties in error responses.