Nnodejs

nodejs/dirent-path-to-parent-path

Handle DEP0178 via transforming `dirent.path` to `dirent.parentPath`.

transformationmigration
Public
771 executions
Run locally
npx codemod @nodejs/dirent-path-to-parent-path
Documentation

dirent.path DEP0178

This codemod transforms the usage of dirent.path to use dirent.parentPath.

See DEP0178.

Example

readdir

diff

opendir

diff

Ready to contribute?

Build your own codemod and share it with the community.