@@ -2064,8 +2064,6 @@ parameter.
2064
2064
The optional ` options ` argument can be a string specifying an encoding, or an
2065
2065
object with an ` encoding ` property specifying the character encoding to use.
2066
2066
2067
- Example:
2068
-
2069
2067
``` js
2070
2068
fs .mkdtemp (path .join (os .tmpdir (), ' foo-' ), (err , folder ) => {
2071
2069
if (err) throw err;
@@ -2077,7 +2075,7 @@ fs.mkdtemp(path.join(os.tmpdir(), 'foo-'), (err, folder) => {
2077
2075
The ` fs.mkdtemp() ` method will append the six randomly selected characters
2078
2076
directly to the ` prefix ` string. For instance, given a directory ` /tmp ` , if the
2079
2077
intention is to create a temporary directory * within* ` /tmp ` , the ` prefix `
2080
- * must* end with a trailing platform-specific path separator
2078
+ must end with a trailing platform-specific path separator
2081
2079
(` require('path').sep ` ).
2082
2080
2083
2081
``` js
@@ -4003,24 +4001,22 @@ added: v10.0.0
4003
4001
* ` encoding ` {string} ** Default:** ` 'utf8' `
4004
4002
* Returns: {Promise}
4005
4003
4006
- Creates a unique temporary directory then resolves the ` Promise ` with the
4007
- created folder path. A unique directory name is generated by appending six
4008
- random characters to the end of the provided ` prefix ` .
4004
+ Creates a unique temporary directory and resolves the ` Promise ` with the created
4005
+ folder path. A unique directory name is generated by appending six random
4006
+ characters to the end of the provided ` prefix ` .
4009
4007
4010
4008
The optional ` options ` argument can be a string specifying an encoding, or an
4011
4009
object with an ` encoding ` property specifying the character encoding to use.
4012
4010
4013
- Example:
4014
-
4015
4011
``` js
4016
4012
fsPromises .mkdtemp (path .join (os .tmpdir (), ' foo-' ))
4017
4013
.catch (console .error );
4018
4014
```
4019
4015
4020
- The ` fs .mkdtemp()` method will append the six randomly selected characters
4021
- directly to the ` prefix ` string. For instance, given a directory ` /tmp ` , if the
4022
- intention is to create a temporary directory * within* ` /tmp ` , the ` prefix `
4023
- * must* end with a trailing platform-specific path separator
4016
+ The ` fsPromises .mkdtemp()` method will append the six randomly selected
4017
+ characters directly to the ` prefix ` string. For instance, given a directory
4018
+ ` /tmp ` , if the intention is to create a temporary directory * within* ` /tmp ` , the
4019
+ ` prefix ` must end with a trailing platform-specific path separator
4024
4020
(` require('path').sep ` ).
4025
4021
4026
4022
### fsPromises.open(path, flags[ , mode] )
0 commit comments