Nnodejs

nodejs/util-log-to-console-log

Handle DEP0059 via transforming `log.util()` to `console.log()`.

transformationmigration
Public
121 executions
Run locally
npx codemod @nodejs/util-log-to-console-log
Documentation

util.log DEP0059

This recipe transforms the usage of util.log() to use console.log().

See DEP0059.

Example

diff

Before:

js

After:

js

Ready to contribute?

Build your own codemod and share it with the community.