source: trip-planner-front/node_modules/@babel/parser/bin/babel-parser.js@ ceaed42

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

initial commit

  • Property mode set to 100644
File size: 328 bytes
Line 
1#!/usr/bin/env node
2/* eslint no-var: 0 */
3
4var parser = require("..");
5var fs = require("fs");
6
7var filename = process.argv[2];
8if (!filename) {
9 console.error("no filename specified");
10} else {
11 var file = fs.readFileSync(filename, "utf8");
12 var ast = parser.parse(file);
13
14 console.log(JSON.stringify(ast, null, " "));
15}
Note: See TracBrowser for help on using the repository browser.