We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
path.relative
cwd
1 parent 71581e9 commit 24feb33Copy full SHA for 24feb33
doc/api/path.md
@@ -426,9 +426,9 @@ added: v0.5.0
426
* `to` {string}
427
* Returns: {string}
428
429
-The `path.relative()` method returns the relative path from `from` to `to`.
430
-If `from` and `to` each resolve to the same path (after calling `path.resolve()`
431
-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.
432
433
If a zero-length string is passed as `from` or `to`, the current working
434
directory will be used instead of the zero-length strings.
0 commit comments