We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
path.relative
cwd
1 parent d0f39cc commit cb93283Copy full SHA for cb93283
doc/api/path.md
@@ -445,9 +445,9 @@ changes:
445
* `to` {string}
446
* Returns: {string}
447
448
-The `path.relative()` method returns the relative path from `from` to `to`.
449
-If `from` and `to` each resolve to the same path (after calling `path.resolve()`
450
-on each), a zero-length string is returned.
+The `path.relative()` method returns the relative path from `from` to `to` based
+on the current working directory. If `from` and `to` each resolve to the same
+path (after calling `path.resolve()` on each), a zero-length string is returned.
451
452
If a zero-length string is passed as `from` or `to`, the current working
453
directory will be used instead of the zero-length strings.
0 commit comments