Nnodejs

nodejs/dirent-path-to-parent-path

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

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

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.