Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`
MIT License
Get a random temporary file or directory path
Write string/buffer/stream to a random temp file
Slugify a string
Regular expression for matching reserved filename characters
Detect the file type of a Buffer/Uint8Array/ArrayBuffer
Delete files and directories
Convert a URL to a valid filename
Stringify and write JSON to a file atomically
Check if a string is a valid filename
Convert a string to a valid safe filename