diff options
Diffstat (limited to 'std/node/os.ts')
-rw-r--r-- | std/node/os.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/std/node/os.ts b/std/node/os.ts index f34551da9..4bc70d1ff 100644 --- a/std/node/os.ts +++ b/std/node/os.ts @@ -180,9 +180,9 @@ export function setPriority(pid: number, priority?: number): void { notImplemented(SEE_GITHUB_ISSUE); } -/** Not yet implemented */ -export function tmpdir(): string { - notImplemented(SEE_GITHUB_ISSUE); +/** Returns the operating system's default directory for temporary files as a string. */ +export function tmpdir(): string | null { + return Deno.dir("tmp"); } /** Not yet implemented */ |