Dieses Repository beinhaltet HTML- und Javascript Code zur einer NotizenWebApp auf Basis von Web Storage. Zudem sind Mocha/Chai Tests im Browser enthalten. https://meinenotizen.netlify.app/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.js 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. 'use strict';
  2. const {sep} = require('path');
  3. const {platform} = process;
  4. exports.EV_ALL = 'all';
  5. exports.EV_READY = 'ready';
  6. exports.EV_ADD = 'add';
  7. exports.EV_CHANGE = 'change';
  8. exports.EV_ADD_DIR = 'addDir';
  9. exports.EV_UNLINK = 'unlink';
  10. exports.EV_UNLINK_DIR = 'unlinkDir';
  11. exports.EV_RAW = 'raw';
  12. exports.EV_ERROR = 'error';
  13. exports.STR_DATA = 'data';
  14. exports.STR_END = 'end';
  15. exports.STR_CLOSE = 'close';
  16. exports.FSEVENT_CREATED = 'created';
  17. exports.FSEVENT_MODIFIED = 'modified';
  18. exports.FSEVENT_DELETED = 'deleted';
  19. exports.FSEVENT_MOVED = 'moved';
  20. exports.FSEVENT_CLONED = 'cloned';
  21. exports.FSEVENT_UNKNOWN = 'unknown';
  22. exports.FSEVENT_TYPE_DIRECTORY = 'directory';
  23. exports.FSEVENT_TYPE_SYMLINK = 'symlink';
  24. exports.KEY_LISTENERS = 'listeners';
  25. exports.KEY_ERR = 'errHandlers';
  26. exports.KEY_RAW = 'rawEmitters';
  27. exports.HANDLER_KEYS = [exports.KEY_LISTENERS, exports.KEY_ERR, exports.KEY_RAW];
  28. exports.DOT_SLASH = `.${sep}`;
  29. exports.BACK_SLASH_RE = /\\/g;
  30. exports.DOUBLE_SLASH_RE = /\/\//;
  31. exports.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
  32. exports.DOT_RE = /\..*\.(sw[px])$|~$|\.subl.*\.tmp/;
  33. exports.REPLACER_RE = /^\.[/\\]/;
  34. exports.SLASH = '/';
  35. exports.BRACE_START = '{';
  36. exports.BANG = '!';
  37. exports.ONE_DOT = '.';
  38. exports.TWO_DOTS = '..';
  39. exports.STAR = '*';
  40. exports.GLOBSTAR = '**';
  41. exports.ROOT_GLOBSTAR = '/**/*';
  42. exports.SLASH_GLOBSTAR = '/**';
  43. exports.DIR_SUFFIX = 'Dir';
  44. exports.ANYMATCH_OPTS = {dot: true};
  45. exports.STRING_TYPE = 'string';
  46. exports.FUNCTION_TYPE = 'function';
  47. exports.EMPTY_STR = '';
  48. exports.EMPTY_FN = () => {};
  49. exports.IDENTITY_FN = val => val;
  50. exports.isWindows = platform === 'win32';
  51. exports.isMacos = platform === 'darwin';