1'use strict'; 2 3const isWindows = process.platform === 'win32'; 4 5module.exports = { 6 // Alphabet chars. 7 CHAR_UPPERCASE_A: 65, /* A */ 8 CHAR_LOWERCASE_A: 97, /* a */ 9 CHAR_UPPERCASE_Z: 90, /* Z */ 10 CHAR_LOWERCASE_Z: 122, /* z */ 11 CHAR_UPPERCASE_C: 67, /* C */ 12 CHAR_LOWERCASE_B: 98, /* b */ 13 CHAR_LOWERCASE_E: 101, /* e */ 14 CHAR_LOWERCASE_N: 110, /* n */ 15 16 // Non-alphabetic chars. 17 CHAR_DOT: 46, /* . */ 18 CHAR_FORWARD_SLASH: 47, /* / */ 19 CHAR_BACKWARD_SLASH: 92, /* \ */ 20 CHAR_VERTICAL_LINE: 124, /* | */ 21 CHAR_COLON: 58, /* : */ 22 CHAR_QUESTION_MARK: 63, /* ? */ 23 CHAR_UNDERSCORE: 95, /* _ */ 24 CHAR_LINE_FEED: 10, /* \n */ 25 CHAR_CARRIAGE_RETURN: 13, /* \r */ 26 CHAR_TAB: 9, /* \t */ 27 CHAR_FORM_FEED: 12, /* \f */ 28 CHAR_EXCLAMATION_MARK: 33, /* ! */ 29 CHAR_HASH: 35, /* # */ 30 CHAR_SPACE: 32, /* */ 31 CHAR_NO_BREAK_SPACE: 160, /* \u00A0 */ 32 CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, /* \uFEFF */ 33 CHAR_LEFT_SQUARE_BRACKET: 91, /* [ */ 34 CHAR_RIGHT_SQUARE_BRACKET: 93, /* ] */ 35 CHAR_LEFT_ANGLE_BRACKET: 60, /* < */ 36 CHAR_RIGHT_ANGLE_BRACKET: 62, /* > */ 37 CHAR_LEFT_CURLY_BRACKET: 123, /* { */ 38 CHAR_RIGHT_CURLY_BRACKET: 125, /* } */ 39 CHAR_HYPHEN_MINUS: 45, /* - */ 40 CHAR_PLUS: 43, /* + */ 41 CHAR_DOUBLE_QUOTE: 34, /* " */ 42 CHAR_SINGLE_QUOTE: 39, /* ' */ 43 CHAR_PERCENT: 37, /* % */ 44 CHAR_SEMICOLON: 59, /* ; */ 45 CHAR_CIRCUMFLEX_ACCENT: 94, /* ^ */ 46 CHAR_GRAVE_ACCENT: 96, /* ` */ 47 CHAR_AT: 64, /* @ */ 48 CHAR_AMPERSAND: 38, /* & */ 49 CHAR_EQUAL: 61, /* = */ 50 51 // Digits 52 CHAR_0: 48, /* 0 */ 53 CHAR_9: 57, /* 9 */ 54 55 EOL: isWindows ? '\r\n' : '\n', 56}; 57