Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

constants.js 706B

12345678910111213141516171819
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const os = require("os");
  4. exports.EOL = os.EOL;
  5. exports.CarriageReturnLineFeed = '\r\n';
  6. exports.LineFeed = '\n';
  7. exports.CarriageReturnLineFeedCode = 0;
  8. exports.LineFeedCode = 1;
  9. exports.extensionRegex = /\.[^.]+$/;
  10. exports.tsxRegex = /\.tsx$/i;
  11. exports.tsTsxRegex = /\.ts(x?)$/i;
  12. exports.dtsDtsxOrDtsDtsxMapRegex = /\.d\.ts(x?)(\.map)?$/i;
  13. exports.dtsTsTsxRegex = /(\.d)?\.ts(x?)$/i;
  14. exports.dtsTsTsxJsJsxRegex = /((\.d)?\.ts(x?)|js(x?))$/i;
  15. exports.tsTsxJsJsxRegex = /\.tsx?$|\.jsx?$/i;
  16. exports.jsJsx = /\.js(x?)$/i;
  17. exports.jsJsxMap = /\.js(x?)\.map$/i;
  18. exports.jsonRegex = /\.json$/i;
  19. exports.nodeModules = /node_modules/i;