Get unique temp file or dir path.
$ yarn add tmpa
const getTempFilePath: (extension?: string) => Promise<string>
const getTempDirPath: (prefix?: string) => Promise<string>
import { getTempFilePath, getTempDirPath } from 'tmpa'
console.log(
await getTempFilePath('png')
)
// /private/var/folders/…/….png
console.log(
await getTempDirPath('prefix-')
)
// /private/var/folders/…/prefix-…