← All recipes
Moderne licensed

Replace deprecated util.isX() methods with native JavaScript

Recipe IDorg.openrewrite.node.migrate.util.use-native-type-checking-methodsArtifact@openrewrite/recipes-nodejs

The util module's type-checking methods have been removed in Node 22.

Single recipeDEP0052DEP0053DEP0054DEP0044DEP0055DEP0050DEP0051DEP0049DEP0045DEP0056DEP0046DEP0057DEP0047DEP0058DEP0048Proprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.node.migrate.util.use-native-type-checking-methods

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/recipes-nodejs