Nnodejs

nodejs/types-is-native-error

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

transformationmigrationnodejs
Public
29 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 evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.