source: trip-planner-front/node_modules/chokidar/lib/constants.js@ 6c1585f

Last change on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.8 KB
Line 
1'use strict';
2
3const {sep} = require('path');
4const {platform} = process;
5const os = require('os');
6
7exports.EV_ALL = 'all';
8exports.EV_READY = 'ready';
9exports.EV_ADD = 'add';
10exports.EV_CHANGE = 'change';
11exports.EV_ADD_DIR = 'addDir';
12exports.EV_UNLINK = 'unlink';
13exports.EV_UNLINK_DIR = 'unlinkDir';
14exports.EV_RAW = 'raw';
15exports.EV_ERROR = 'error';
16
17exports.STR_DATA = 'data';
18exports.STR_END = 'end';
19exports.STR_CLOSE = 'close';
20
21exports.FSEVENT_CREATED = 'created';
22exports.FSEVENT_MODIFIED = 'modified';
23exports.FSEVENT_DELETED = 'deleted';
24exports.FSEVENT_MOVED = 'moved';
25exports.FSEVENT_CLONED = 'cloned';
26exports.FSEVENT_UNKNOWN = 'unknown';
27exports.FSEVENT_TYPE_FILE = 'file';
28exports.FSEVENT_TYPE_DIRECTORY = 'directory';
29exports.FSEVENT_TYPE_SYMLINK = 'symlink';
30
31exports.KEY_LISTENERS = 'listeners';
32exports.KEY_ERR = 'errHandlers';
33exports.KEY_RAW = 'rawEmitters';
34exports.HANDLER_KEYS = [exports.KEY_LISTENERS, exports.KEY_ERR, exports.KEY_RAW];
35
36exports.DOT_SLASH = `.${sep}`;
37
38exports.BACK_SLASH_RE = /\\/g;
39exports.DOUBLE_SLASH_RE = /\/\//;
40exports.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
41exports.DOT_RE = /\..*\.(sw[px])$|~$|\.subl.*\.tmp/;
42exports.REPLACER_RE = /^\.[/\\]/;
43
44exports.SLASH = '/';
45exports.SLASH_SLASH = '//';
46exports.BRACE_START = '{';
47exports.BANG = '!';
48exports.ONE_DOT = '.';
49exports.TWO_DOTS = '..';
50exports.STAR = '*';
51exports.GLOBSTAR = '**';
52exports.ROOT_GLOBSTAR = '/**/*';
53exports.SLASH_GLOBSTAR = '/**';
54exports.DIR_SUFFIX = 'Dir';
55exports.ANYMATCH_OPTS = {dot: true};
56exports.STRING_TYPE = 'string';
57exports.FUNCTION_TYPE = 'function';
58exports.EMPTY_STR = '';
59exports.EMPTY_FN = () => {};
60exports.IDENTITY_FN = val => val;
61
62exports.isWindows = platform === 'win32';
63exports.isMacos = platform === 'darwin';
64exports.isLinux = platform === 'linux';
65exports.isIBMi = os.type() === 'OS400';
Note: See TracBrowser for help on using the repository browser.