Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-05-07 00:10:23 +0300
committerRuben Bridgewater <ruben@bridgewater.de>2018-05-18 16:25:41 +0300
commitd478e52fe0bc396c8e65baf0861553a0d3de99db (patch)
treec569cdafa3ff48fb85e77c6e871b082825c86441 /lib/internal/constants.js
parent2bfba0dd339d1480e1b5caa64f28e330147845b9 (diff)
os: lazy loaded
PR-URL: https://github.com/nodejs/node/pull/20567 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'lib/internal/constants.js')
-rw-r--r--lib/internal/constants.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/internal/constants.js b/lib/internal/constants.js
index 5c884ae6bc4..dfa30bea306 100644
--- a/lib/internal/constants.js
+++ b/lib/internal/constants.js
@@ -1,5 +1,7 @@
'use strict';
+const isWindows = process.platform === 'win32';
+
module.exports = {
// Alphabet chars.
CHAR_UPPERCASE_A: 65, /* A */
@@ -45,4 +47,6 @@ module.exports = {
// Digits
CHAR_0: 48, /* 0 */
CHAR_9: 57, /* 9 */
+
+ EOL: isWindows ? '\r\n' : '\n'
};