summaryrefslogtreecommitdiff
path: root/fs/path/constants.ts
diff options
context:
space:
mode:
authorMax Graey <maxgraey@gmail.com>2019-01-24 21:06:24 +0200
committerRyan Dahl <ry@tinyclouds.org>2019-01-24 14:06:24 -0500
commit57b6fdb2eb743260a771489b98eb9e691ccad236 (patch)
tree03a23c82e6ec8028f200910df69a2eda10ff74f0 /fs/path/constants.ts
parentdeedb5e84e7878f70f652059dabace3ec64e2eda (diff)
Clean up path module (denoland/deno_std#149)
Original: https://github.com/denoland/deno_std/commit/47e6fc775aaf1c4970e4098822aa40c3203286ae
Diffstat (limited to 'fs/path/constants.ts')
-rw-r--r--fs/path/constants.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/path/constants.ts b/fs/path/constants.ts
index b440be9cc..ce121f9ac 100644
--- a/fs/path/constants.ts
+++ b/fs/path/constants.ts
@@ -3,8 +3,6 @@
import { platform } from "deno";
-const isWindows = platform.os === "win";
-
// Alphabet chars.
export const CHAR_UPPERCASE_A = 65; /* A */
export const CHAR_LOWERCASE_A = 97; /* a */
@@ -50,4 +48,5 @@ export const CHAR_EQUAL = 61; /* = */
export const CHAR_0 = 48; /* 0 */
export const CHAR_9 = 57; /* 9 */
+export const isWindows = platform.os === "win";
export const EOL = isWindows ? "\r\n" : "\n";