summaryrefslogtreecommitdiff
path: root/cli/js/os.ts
diff options
context:
space:
mode:
authorecyrbe <ecyrbe@gmail.com>2020-03-02 01:05:04 +0100
committerGitHub <noreply@github.com>2020-03-01 19:05:04 -0500
commit2a594bd3b2403fbbd26a0191ac8c289c365451d0 (patch)
tree0b620a57e80ff1651f230ae0f6458145d1017cde /cli/js/os.ts
parentad21210edd5aabdeebe70809672b4224cc6f41c9 (diff)
feat(std/node): add os.tmpdir() implementation (#4213)
Diffstat (limited to 'cli/js/os.ts')
-rw-r--r--cli/js/os.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/js/os.ts b/cli/js/os.ts
index 309f5e1ff..89632e34f 100644
--- a/cli/js/os.ts
+++ b/cli/js/os.ts
@@ -88,6 +88,7 @@ type DirKind =
| "picture"
| "public"
| "template"
+ | "tmp"
| "video";
/**
@@ -191,6 +192,14 @@ type DirKind =
* | macOS | – | – |
* | Windows | `{FOLDERID_Templates}` | C:\Users\Alice\AppData\Roaming\Microsoft\Windows\Templates |
*
+ * "tmp"
+ *
+ * |Platform | Value | Example |
+ * | ------- | ---------------------- | ---------------------------------------------------------- |
+ * | Linux | `TMPDIR` | /tmp |
+ * | macOS | `TMPDIR` | /tmp |
+ * | Windows | `{TMP}` | C:\Users\Alice\AppData\Local\Temp |
+ *
* "video"
* |Platform | Value | Example |
* | ------- | ------------------- | --------------------- |