Use case
Framework
Owner
React 17 Default Props To Params
Example
This codemod turns X into Y. It also does Z. Note: this is a contrived example. Please modify it.
Remix Js/V2/Nodejs Module Exports Server Build Directory To Path
In your remix.config.js, rename serverBuildDirectory to serverBuildPath and specify a module path, not a directory.
Node/Globmatch Native
This codemod automates the migration of glob-matching functions like
minimatch
,micromatch
, andpicomatch
to Node.js's nativematchesGlob
support in LTS version 20.17.0.Elasticsearch/8/Unify Return Value
This codemod updates the API response structure for search calls, replacing the previous body-only return with an object containing additional fields like
statusCode
,headers
, andwarnings
Elasticsearch/8/Rename Query String
This codemod renames the query key to querystring and changes the body key to bulkBody in client.transport.request.
Elasticsearch/8/Move Client Configurations
This codemod moves the client-related configuration parameters (ignore, headers, requestTimeout, and maxRetries) from the API object to the second options object.
Npm Esm First In Exports
Sort package.json export order to prefer ESM over CJS
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
@E18e/String.Prototype.Lastindexof
Introduction
@E18e/Split Lines
Introduction
@E18e/Last Index Of
Introduction
@E18e/Index Of
Introduction
@E18e/Data View Byte Offset
Introduction
@E18e/Array.Prototype.Lastindexof
Introduction
@E18e/Array.Prototype.Indexof
Introduction
@E18e/Array.Prototype.Findlastindex
Introduction
@E18e/Array.Prototype.Findindex
Introduction
Sql/Add Index Before Select
Example of using codemod that changes SQL. It detects all SELECT statements and adds an index creation statement before them. Inside SELECT statement for any fields that ends with
_id
it creates an index on that field.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Python/Orjson/Recipe
This recipe is a set of codemods that will upgrade json to orjson in your python projects.
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
React Router/4/Index Route
Replace
IndexRoute
withRoute
havingexact
prop set totrue
.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Python/Orjson/Json.Load
This codemod converts json.load to orjson.loads. Adds
.read()
to the file object.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community