| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
In the fs docs there's already instances of this with realpath and readlink, and the description goes like this: The optional options argument can be a string specifying an encoding, or an object with an encoding property specifying the character encoding to use for the link path passed to the callback. If the encoding is set to 'buffer', the <thing> returned will be passed as a Buffer object. Does it make sense to go for consistency and do the same here? |
Sorry, something went wrong.
|
This generally LGTM but aligning with the other instances for consistency would be good. |
Sorry, something went wrong.
`mkdtemp` functions accept an optional `options` parameter, which can be either a String specifying encoding, or an Object with an `encoding` property.
|
@claudiorodriguez Updated the PR, with your suggestion. PTAL. |
Sorry, something went wrong.
|
LGTM with the updates! |
Sorry, something went wrong.
|
ping @claudiorodriguez ... does this LGTY now? |
Sorry, something went wrong.
|
Sorry, LGTM |
Sorry, something went wrong.
`mkdtemp` functions accept an optional `options` parameter, which can be either a String specifying encoding, or an Object with an `encoding` property. PR-URL: #7842 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com>
`mkdtemp` functions accept an optional `options` parameter, which can be either a String specifying encoding, or an Object with an `encoding` property. PR-URL: nodejs#7842 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com>
`mkdtemp` functions accept an optional `options` parameter, which can be either a String specifying encoding, or an Object with an `encoding` property. PR-URL: #7842 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com>
| Back | FazBrowse Home | New Git URL |
Checklist
Affected core subsystem(s)
doc
Description of change
mkdtemp family accepts an optional options parameter, which is
missing in the documentation.
cc @nodejs/documentation