Nnodejs

nodejs/types-is-native-error

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

transformationmigration
Public
4 executions

Run locally

npx codemod @nodejs/types-is-native-error

types.isNativeError DEP0197

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

See DEP0197.

Example

diff

Ready to contribute?

Build your own codemod and share it with the community.