Title: Add the `mkdtemp` and `mkstemp` methods to `fs` · Issue #5332 · nodejs/node · GitHub
Open Graph Title: Add the `mkdtemp` and `mkstemp` methods to `fs` · Issue #5332 · nodejs/node
X Title: Add the `mkdtemp` and `mkstemp` methods to `fs` · Issue #5332 · nodejs/node
Description: I would like to propose the addition of mkdtemp and mkstemp to the fs module, to create a temporary directory and file, respectively. Some manual pages to start with: linux's mktemp libc's mkdtemp windows' GetTempPath python's tempfile j...
Open Graph Description: I would like to propose the addition of mkdtemp and mkstemp to the fs module, to create a temporary directory and file, respectively. Some manual pages to start with: linux's mktemp libc's mkdtemp ...
X Description: I would like to propose the addition of mkdtemp and mkstemp to the fs module, to create a temporary directory and file, respectively. Some manual pages to start with: linux's mktemp libc's ...
Mail addresses
notifications@github.com
notifications@github.com
Opengraph URL: https://github.com/nodejs/node/issues/5332
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add the `mkdtemp` and `mkstemp` methods to `fs`","articleBody":"I would like to propose the addition of `mkdtemp` and `mkstemp` to the `fs` module, to create a temporary directory and file, respectively.\n\nSome manual pages to start with:\n- [linux's mktemp](http://man7.org/linux/man-pages/man1/mktemp.1.html)\n- [libc's mkdtemp](http://man7.org/linux/man-pages/man3/mkdtemp.3.html)\n- [windows' GetTempPath](https://msdn.microsoft.com/en-us/library/windows/desktop/aa364992%28v=vs.85%29.aspx)\n- [python's tempfile](https://docs.python.org/2/library/tempfile.html)\n- [java's createTempFile](https://docs.oracle.com/javase/7/docs/api/java/io/File.html#createTempFile%28java.lang.String,%20java.lang.String%29)\n\nSo, this utility is fairly often needed for various reasons. Not providing it in nodejs itself means that people try to rewrite it, [badly](https://github.com/bruce/node-temp/blob/master/lib/temp.js#L13-L24). (Or may I say, inefficiently.) (I'm obviously not trying to put the blame on someone there, except on node.js for not providing the functions ;-).)\n\nThis is part of the standard library in most other languages. Whether it's C, python, java, and surely others. I believe node.js would benefit its addition as well.\n","author":{"url":"https://github.com/ralt","@type":"Person","name":"ralt"},"datePublished":"2016-02-19T21:56:31Z","url":"https://github.com/nodejs/node/issues/5332"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4aa8b0ed-ad90-e41f-b0a5-84d822a20c95 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D9C0:CC862:134571:18A91B:6B033958 |
| html-safe-nonce | 3dd003df3baf20319f3dceca43baeb096e694d694ab339b90c7b8492a29249d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUMwOkNDODYyOjEzNDU3MToxOEE5MUI6NkIwMzM5NTgiLCJ2aXNpdG9yX2lkIjoiNzQ1MjkzNjk2MzkwNjI4Nzk2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c383a8871028ec6d9e7a7c5c413cb04496f504df2784de2b82298fdf29e9f739 |
| hovercard-subject-tag | issue:134985683 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/5332/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c4ffe9b0c20d37d12bb627ab3de80e6023cdf7c1ec459c61abec36ddcd443ff3/nodejs/node/issues/5332 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c4ffe9b0c20d37d12bb627ab3de80e6023cdf7c1ec459c61abec36ddcd443ff3/nodejs/node/issues/5332 |
| og:image:alt | I would like to propose the addition of mkdtemp and mkstemp to the fs module, to create a temporary directory and file, respectively. Some manual pages to start with: linux's mktemp libc's mkdtemp ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ralt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width