Skip to content

tempDir ​

tempDir returns the system's temporary directory (e.g. /tmp on Linux).

SignaturetempDir(): string
tyrus
import { tempDir } from "tyrus:os";

const temp: string = tempDir();
print(`temp: ${temp}`);