From 2a594bd3b2403fbbd26a0191ac8c289c365451d0 Mon Sep 17 00:00:00 2001 From: ecyrbe Date: Mon, 2 Mar 2020 01:05:04 +0100 Subject: feat(std/node): add os.tmpdir() implementation (#4213) --- std/node/os.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'std/node/os.ts') 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 */ -- cgit v1.2.3