← All recipes
Moderne licensed

Replace deprecated util.log() with console.log()

Recipe IDorg.openrewrite.node.migrate.util.replace-util-logArtifact@openrewrite/recipes-nodejs

Replace deprecated util.log() calls with console.log(). Note: util.log() included timestamps, but console.log() does not.

Single recipeDEP0059Proprietary

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.replace-util-log

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

mod config recipes npm install @openrewrite/recipes-nodejs