import { mkdtemp } from "fs" import { tmpdir } from "os" import { sep } from "path" const tmpDir = tmpdir() mkdtemp(`${tmpDir}${sep}`, (err, folder) => { if (err) throw err return folder })