dirent.path DEP0178
This codemod transforms the usage of dirent.path to use dirent.parentPath.
See DEP0178.
Example
readdir
diff
opendir
diff
Explore community-led codemods to migrate, optimize, and transform your codebase.
Build your own codemod and share it with the community.
Handle DEP0178 via transforming `dirent.path` to `dirent.parentPath`.
npx codemod @nodejs/dirent-path-to-parent-path
This codemod transforms the usage of dirent.path to use dirent.parentPath.
See DEP0178.
diff
diff
Build your own codemod and share it with the community.