10BC0
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 8d39481 commit 54e6a8dCopy full SHA for 54e6a8d
doc/api/path.markdown
@@ -105,6 +105,8 @@ and the `ext` property will be used as the `base` property.
105
106
Examples:
107
108
+An example on Posix systems:
109
+
110
```js
111
path.format({
112
root : "/",
@@ -125,6 +127,19 @@ path.format({
125
127
// returns '/file.txt'
126
128
```
129
130
+An example on Windows:
131
132
+```js
133
+path.format({
134
+ root : "C:\\",
135
+ dir : "C:\\path\\dir",
136
+ base : "file.txt",
137
+ ext : ".txt",
138
+ name : "file"
139
+})
140
+// returns 'C:\\path\\dir\\file.txt'
141
+```
142
143
## path.isAbsolute(path)
144
145
Determines whether `path` is an absolute path. An absolute path will always
0 commit comments