@@ -61,6 +61,7 @@ added: v0.1.25
61
61
62
62
* ` path ` {String}
63
63
* ` ext ` {String} An optional file extension
64
+ * Return: {String}
64
65
65
66
The ` path.basename() ` methods returns the last portion of a ` path ` , similar to
66
67
the Unix ` basename ` command.
@@ -83,6 +84,8 @@ and is not a string.
83
84
added: v0.9.3
84
85
-->
85
86
87
+ * {String}
88
+
86
89
Provides the platform-specific path delimiter:
87
90
88
91
* ` ; ` for Windows
@@ -114,6 +117,7 @@ added: v0.1.16
114
117
-->
115
118
116
119
* ` path ` {String}
120
+ * Return: {String}
117
121
118
122
The ` path.dirname() ` method returns the directory name of a ` path ` , similar to
119
123
the Unix ` dirname ` command.
@@ -133,6 +137,7 @@ added: v0.1.25
133
137
-->
134
138
135
139
* ` path ` {String}
140
+ * Return: {String}
136
141
137
142
The ` path.extname() ` method returns the extension of the ` path ` , from the last
138
143
occurrence of the ` . ` (period) character to end of string in the last portion of
@@ -168,10 +173,11 @@ added: v0.11.15
168
173
169
174
* ` pathObject ` {Object}
170
175
* ` dir ` {String}
171
- * ` root ` {String}
176
+ * ` root ` {String}
172
177
* ` base ` {String}
173
178
* ` name ` {String}
174
179
* ` ext ` {String}
180
+ * Return: {String}
175
181
176
182
The ` path.format() ` method returns a path string from an object. This is the
177
183
opposite of [ ` path.parse() ` ] [ ] .
@@ -244,6 +250,7 @@ added: v0.11.2
244
250
-->
245
251
246
252
* ` path ` {String}
253
+ * Return: {Boolean}
247
254
248
255
The ` path.isAbsolute() ` method determines if ` path ` is an absolute path.
249
256
@@ -278,6 +285,7 @@ added: v0.1.16
278
285
-->
279
286
280
287
* ` ...paths ` {String} A sequence of path segments
288
+ * Return: {String}
281
289
282
290
The ` path.join() ` method joins all given ` path ` segments together using the
283
291
platform specific separator as a delimiter, then normalizes the resulting path.
@@ -304,6 +312,7 @@ added: v0.1.23
304
312
-->
305
313
306
314
* ` path ` {String}
315
+ * Return: {String}
307
316
308
317
The ` path.normalize() ` method normalizes the given ` path ` , resolving ` '..' ` and
309
318
` '.' ` segments.
@@ -337,6 +346,7 @@ added: v0.11.15
337
346
-->
338
347
339
348
* ` path ` {String}
349
+ * Return: {Object}
340
350
341
351
The ` path.parse() ` method returns an object whose properties represent
342
352
significant elements of the ` path ` .
@@ -404,6 +414,8 @@ A [`TypeError`][] is thrown if `path` is not a string.
404
414
added: v0.11.15
405
415
-->
406
416
417
+ * {Object}
418
+
407
419
The ` path.posix ` property provides access to POSIX specific implementations
408
420
of the ` path ` methods.
409
421
@@ -414,6 +426,7 @@ added: v0.5.0
414
426
415
427
* ` from ` {String}
416
428
* ` to ` {String}
429
+ * Return: {String}
417
430
418
431
The ` path.relative() ` method returns the relative path from ` from ` to ` to ` .
419
432
If ` from ` and ` to ` each resolve to the same path (after calling ` path.resolve() `
@@ -444,6 +457,7 @@ added: v0.3.4
444
457
-->
445
458
446
459
* ` ...paths ` {String} A sequence of paths or path segments
460
+ * Return: {String}
447
461
448
462
The ` path.resolve() ` method resolves a sequence of paths or path segments into
449
463
an absolute path.
@@ -485,6 +499,8 @@ A [`TypeError`][] is thrown if any of the arguments is not a string.
485
499
added: v0.7.9
486
500
-->
487
501
502
+ * {String}
503
+
488
504
Provides the platform-specific path segment separator:
489
505
490
506
* ` \ ` on Windows
@@ -509,6 +525,8 @@ On Windows:
509
525
added: v0.11.15
510
526
-->
511
527
528
+ * {Object}
529
+
512
530
The ` path.win32 ` property provides access to Windows-specific implementations
513
531
of the ` path ` methods.
514
532
0 commit comments