PHP 7.4.33
Preview: getParser.js Size: 648 B
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/jscodeshift/src/getParser.js
/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

'use strict';

module.exports = function getParser(parserName, options) {
  switch (parserName) {
    case 'babylon':
      return require('../parser/babylon')(options);
    case 'flow':
      return require('../parser/flow')(options);
    case 'ts':
      return require('../parser/ts')(options);
    case 'tsx':
      return require('../parser/tsx')(options);
    case 'babel':
    default:
      return require('../parser/babel5Compat')(options);
  }
};

Directory Contents

Dirs: 3 × Files: 10
Name Size Perms Modified Actions
- drwxr-xr-x 2025-03-28 11:04:33
Edit Download
utils DIR
- drwxr-xr-x 2025-03-28 11:04:33
Edit Download
- drwxr-xr-x 2025-03-28 11:04:33
Edit Download
7.55 KB lrw-r--r-- 2025-03-28 11:04:33
Edit Download
11.85 KB lrw-r--r-- 2025-03-28 11:04:33
Edit Download
4.37 KB lrw-r--r-- 2025-03-28 11:04:33
Edit Download
648 B lrw-r--r-- 2025-03-28 11:04:33
Edit Download
1.73 KB lrw-r--r-- 2025-03-28 11:04:33
Edit Download
971 B lrw-r--r-- 2025-03-28 11:04:33
Edit Download
9.18 KB lrw-r--r-- 2025-03-28 11:04:33
Edit Download
4.79 KB lrw-r--r-- 2025-03-28 11:04:33
Edit Download
5.87 KB lrw-r--r-- 2025-03-28 11:04:33
Edit Download
5.48 KB lrw-r--r-- 2025-03-28 11:04:33
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).