diff --git a/doc/api/path.md b/doc/api/path.md index e752d7d6883f72..e4b41605406bb0 100644 --- a/doc/api/path.md +++ b/doc/api/path.md @@ -60,7 +60,7 @@ example, `path.resolve('c:\\')` can potentially return a different result than `path.resolve('c:')`. For more information, see [this MSDN page][MSDN-Rel-Path]. -## path.basename(path\[, ext\]) +## `path.basename(path[, ext])` @@ -120,7 +120,7 @@ process.env.PATH.split(path.delimiter); // Returns ['C:\\Windows\\system32', 'C:\\Windows', 'C:\\Program Files\\node\\'] ``` -## path.dirname(path) +## `path.dirname(path)` @@ -247,7 +247,7 @@ path.format({ // Returns: 'C:\\path\\dir\\file.txt' ``` -## path.isAbsolute(path) +## `path.isAbsolute(path)` @@ -282,7 +282,7 @@ path.isAbsolute('.'); // false A [`TypeError`][] is thrown if `path` is not a string. -## path.join(\[...paths\]) +## `path.join([...paths])` @@ -307,7 +307,7 @@ path.join('foo', {}, 'bar'); A [`TypeError`][] is thrown if any of the path segments is not a string. -## path.normalize(path) +## `path.normalize(path)` @@ -350,7 +350,7 @@ path.win32.normalize('C:////temp\\\\/\\/\\/foo/bar'); A [`TypeError`][] is thrown if `path` is not a string. -## path.parse(path) +## `path.parse(path)` @@ -416,7 +416,7 @@ path.parse('C:\\path\\dir\\file.txt'); A [`TypeError`][] is thrown if `path` is not a string. -## path.posix +## `path.posix` @@ -426,7 +426,7 @@ added: v0.11.15 The `path.posix` property provides access to POSIX specific implementations of the `path` methods. -## path.relative(from, to) +## `path.relative(from, to)` @@ -504,7 +504,7 @@ path.resolve('wwwroot', 'static_files/png/', '../gif/image.gif'); A [`TypeError`][] is thrown if any of the arguments is not a string. -## path.sep +## `path.sep` @@ -534,7 +534,7 @@ On Windows, both the forward slash (`/`) and backward slash (`\`) are accepted as path segment separators; however, the `path` methods only add backward slashes (`\`). -## path.toNamespacedPath(path) +## `path.toNamespacedPath(path)` @@ -549,7 +549,7 @@ modifications. This method is meaningful only on Windows system. On POSIX systems, the method is non-operational and always returns `path` without modifications. -## path.win32 +## `path.win32`