In node.js, how do I generate a unique temporary file name, a la mkstemp(3)? I want to atomically write a file using fs.rename.
mkstemp(3)
fs.rename
Another popular package is tmp.
2.1m questions
2.1m answers
60 comments
57.0k users