Files
react-native-devtools-frontend/node_modules/@babel/parser/bin/babel-parser.js
T
Tim van der Lippe 5e33ec715d Run npm dedupe to cleanup node_modules tree
This Cl is the output of the following command:

npm run install-deps -- dedupe

This is an attempt to reduce the amount of disk usage of
the node_modules folder. For more information, see
https://github.com/eslint/eslint/issues/14098

DISABLE_THIRD_PARTY_CHECK=NPM dedupe
R=jacktfranklin@chromium.org

Bug: none
Change-Id: If482ec6cf6ad1936aab4a7b0ff3e61bf5ea98a8f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2703961
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
2021-02-18 12:43:17 +00:00

16 lines
328 B
JavaScript
Executable File

#!/usr/bin/env node
/* eslint no-var: 0 */
var parser = require("..");
var fs = require("fs");
var filename = process.argv[2];
if (!filename) {
console.error("no filename specified");
} else {
var file = fs.readFileSync(filename, "utf8");
var ast = parser.parse(file);
console.log(JSON.stringify(ast, null, " "));
}