We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2fa644 commit 0ffd794Copy full SHA for 0ffd794
doc/api/path.markdown
@@ -100,6 +100,8 @@ string will be the contents of the `base` property.
100
If the `base` property is not supplied, a concatenation of the `name` property
101
and the `ext` property will be used as the `base` property.
102
103
+An example on Posix systems:
104
+
105
```js
106
path.format({
107
root : "/",
@@ -111,6 +113,19 @@ path.format({
111
113
// returns '/home/user/dir/file.txt'
112
114
```
115
116
+An example on Windows:
117
118
+```js
119
+path.format({
120
+ root : "C:\\",
121
+ dir : "C:\\path\\dir",
122
+ base : "file.txt",
123
+ ext : ".txt",
124
+ name : "file"
125
+})
126
+// returns 'C:\\path\\dir\\file.txt'
127
+```
128
129
## path.isAbsolute(path)
130
131
Determines whether `path` is an absolute path. An absolute path will always
0 commit comments