Write string/buffer/stream to a random temp file
MIT License
Stringify and write JSON to a file atomically
Get a random temporary path
Get the real path of the system temp directory
Get a random temporary file path
Copy a file
Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`
Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`
Get paths for storing things like data, config, cache, etc
Get a random temporary file or directory path
Make a directory and its parents if needed - Think `mkdir -p`
Get stdin as a string or buffer