Nnodejs

nodejs/types-is-native-error

Handle DEP0197 via transforming `types.isNativeError` to `Error.isError`

transformationmigration
Public
0 downloads
2 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

types.isNativeError DEP0197

This recipe transforms the usage of types.isNativeError to use the Error.isError.

See DEP0197.

Example

Before:

js

After:

js

Ready to contribute?

Build your own codemod and share it with the community.