8000
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.
1 parent 9de9146 commit 5921654Copy full SHA for 5921654
doc/api/path.md
@@ -60,7 +60,7 @@ example, `path.resolve('c:\\')` can potentially return a different result than
60
`path.resolve('c:')`. For more information, see
61
[this MSDN page][MSDN-Rel-Path].
62
63
-## path.basename(path\[, ext\])
+## `path.basename(path[, ext])`
64
<!-- YAML
65
added: v0.1.25
66
changes:
@@ -88,7 +88,7 @@ path.basename('/foo/bar/baz/asdf/quux.html', '.html');
88
A [`TypeError`][] is thrown if `path` is not a string or if `ext` is given
89
and is not a string.
90
91
-## path.delimiter
+## `path.delimiter`
92
93
added: v0.9.3
94
-->
@@ -120,7 +120,7 @@ process.env.PATH.split(path.delimiter);
120
// Returns ['C:\\Windows\\system32', 'C:\\Windows', 'C:\\Program Files\\node\\']
121
```
122
123
-## path.dirname(path)
+## `path.dirname(path)`
124
125
added: v0.1.16
126
@@ -143,7 +143,7 @@ path.dirname('/foo/bar/baz/asdf/quux');
143
144
A [`TypeError`][] is thrown if `path` is not a string.
145
146
-## path.extname(path)
+## `path.extname(path)`
147
148
149
@@ -183,7 +183,7 @@ path.extname('.index.md');
183
184
185
186
-## path.format(pathObject)
+## `path.format(pathObject)`
187
188
added: v0.11.15
189
@@ -247,7 +247,7 @@ path.format({
247
// Returns: 'C:\\path\\dir\\file.txt'
248
249
250
-## path.isAbsolute(path)
+## `path.isAbsolute(path)`
251
252
added: v0.11.2
253
@@ -282,7 +282,7 @@ path.isAbsolute('.'); // false
282
283
284
285
-## path.join(\[...paths\])
+## `path.join([...paths])`
286
287
288
@@ -307,7 +307,7 @@ path.join('foo', {}, 'bar');
307
308
A [`TypeError`][] is thrown if any of the path segments is not a string.
309
310
-## path.normalize(path)
+## `path.normalize(path)`
311
312
added: v0.1.23
313
@@ -350,7 +350,7 @@ path.win32.normalize('C:////temp\\\\/\\/\\/foo/bar');
350
351
352
353
-## path.parse(path)
+## `path.parse(path)`
354
355
356
@@ -416,7 +416,7 @@ path.parse('C:\\path\\dir\\file.txt');
416
417
418
419
-## path.posix
+## `path.posix`
420
421
422
@@ -426,7 +426,7 @@ added: v0.11.15
426
The `path.posix` property provides access to POSIX specific implementations
427
of the `path` methods.
428
429
-## path.relative(from, to)
+## `path.relative(from, to)`
430
431
added: v0.5.0
432
@@ -463,7 +463,7 @@ path.relative('C:\\orandea\\test\\aaa', 'C:\\orandea\\impl\\bbb');
463
464
A [`TypeError`][] is thrown if either `from` or `to` is not a string.
465
466
-## path.resolve(\[...paths\])
+## `path.resolve([...paths])`
467
468
added: v0.3.4
469
@@ -504,7 +504,7 @@ path.resolve('wwwroot', 'static_files/png/', '../gif/image.gif');
504
505
A [`TypeError`][] is thrown if any of the arguments is not a string.
506
507
-## path.sep
+## `path.sep`
508
509
added: v0.7.9
510
@@ -534,7 +534,7 @@ On Windows, both the forward slash (`/`) and backward slash (`\`) are accepted
534
as path segment separators; however, the `path` methods only add backward
535
slashes (`\`).
536
537
-## path.toNamespacedPath(path)
+## `path.toNamespacedPath(path)`
538
539
added: v9.0.0
540
@@ -549,7 +549,7 @@ modifications.
549
This method is meaningful only on Windows system. On POSIX systems, the
550
method is non-operational and always returns `path` without modifications.
551
552
-## path.win32
+## `path.win32`
553
554
555