@@ -209,7 +209,7 @@ path.extname('.index.md');
209
209
// Returns: '.md'
210
210
```
211
211
212
- A [ ` TypeError ` ] [ ] is thrown if ` path ` is not a string or an instance of \ [` URL ` ] \ [] .
212
+ A [ ` TypeError ` ] [ ] is thrown if ` path ` is not a string or an instance of [ ` URL ` ] [ ] .
213
213
214
214
## ` path.format(pathObject) `
215
215
@@ -326,7 +326,7 @@ path.isAbsolute('bar/baz'); // false
326
326
path .isAbsolute (' .' ); // false
327
327
```
328
328
329
- A [ ` TypeError ` ] [ ] is thrown if ` path ` is not a string or an instance of \ [` URL ` ] \ [] .
329
+ A [ ` TypeError ` ] [ ] is thrown if ` path ` is not a string or an instance of [ ` URL ` ] [ ] .
330
330
331
331
## ` path.join([...paths]) `
332
332
@@ -356,7 +356,7 @@ path.join('foo', {}, 'bar');
356
356
// Throws 'TypeError: Path must be a string. Received {}'
357
357
```
358
358
359
- A [ ` TypeError ` ] [ ] is thrown if any of the path segments is not a string or an instance of \ [` URL ` ] \ [] .
359
+ A [ ` TypeError ` ] [ ] is thrown if any of the path segments is not a string or an instance of [ ` URL ` ] [ ] .
360
360
361
361
## ` path.normalize(path) `
362
362
@@ -412,7 +412,7 @@ path.win32.normalize('C:////temp\\\\/\\/\\/foo/bar');
412
412
// Returns: 'C:\\temp\\foo\\bar'
413
413
```
414
414
415
- A [ ` TypeError ` ] [ ] is thrown if ` path ` is not a string or an instance of \ [` URL ` ] \ [] .
415
+ A [ ` TypeError ` ] [ ] is thrown if ` path ` is not a string or an instance of [ ` URL ` ] [ ] .
416
416
417
417
## ` path.parse(path) `
418
418
@@ -483,7 +483,7 @@ path.parse('C:\\path\\dir\\file.txt');
483
483
(All spaces in the "" line should be ignored. They are purely for formatting.)
484
484
```
485
485
486
- A [ ` TypeError ` ] [ ] is thrown if ` path ` is not a string or an instance of \ [` URL ` ] \ [] .
486
+ A [ ` TypeError ` ] [ ] is thrown if ` path ` is not a string or an instance of [ ` URL ` ] [ ] .
487
487
488
488
## ` path.posix `
489
489
@@ -541,7 +541,7 @@ path.relative('C:\\orandea\\test\\aaa', 'C:\\orandea\\impl\\bbb');
541
541
// Returns: '..\\..\\impl\\bbb'
542
542
```
543
543
544
- A [ ` TypeError ` ] [ ] is thrown if either ` from ` or ` to ` is not a string or an instance of \ [` URL ` ] \ [] .
544
+ A [ ` TypeError ` ] [ ] is thrown if either ` from ` or ` to ` is not a string or an instance of [ ` URL ` ] [ ] .
545
545
546
546
## ` path.resolve([...paths]) `
547
547
@@ -588,7 +588,7 @@ path.resolve('wwwroot', 'static_files/png/', '../gif/image.gif');
588
588
// this returns '/home/myself/node/wwwroot/static_files/gif/image.gif'
589
589
```
590
590
591
- A [ ` TypeError ` ] [ ] is thrown if any of the arguments is not a string or an instance of \ [` URL ` ] \ [] .
591
+ A [ ` TypeError ` ] [ ] is thrown if any of the arguments is not a string or an instance of [ ` URL ` ] [ ] .
592
592
593
593
## ` path.sep `
594
594
@@ -660,9 +660,9 @@ The API is accessible via `require('node:path').win32` or `require('node:path/wi
660
660
661
661
[ MSDN-Rel-Path ] : https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file#fully-qualified-vs-relative-paths
662
662
[ `TypeError` ] : errors.md#class-typeerror
663
+ [ `URL` ] : url.md#the-whatwg-url-api
663
664
[ `path.parse()` ] : #pathparsepath
664
665
[ `path.posix` ] : #pathposix
665
666
[ `path.sep` ] : #pathsep
666
667
[ `path.win32` ] : #pathwin32
667
668
[ namespace-prefixed path ] : https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file#namespaces
668
- [ `URL` ] : url.md
0 commit comments