Nnodejs

nodejs/util-log-to-console-log

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

transformationmigration
Public
10 downloads
4 stars
How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

util.log DEP0059

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

See DEP0059.

Example

Before:

js

After:

js

Before:

js

After:

js

Ready to contribute?

Build your own codemod and share it with the community.