Given a path, replace the CWD with a "." to make it relative.
"."
// If CWD is `"/projects"`relativePath("/projects/tests/"); // "./tests/"
Relative path.
Path to make relative.
Given a path, replace the CWD with a
"."
to make it relative.Example
Returns
Relative path.