Sha256: c67f7806933938c965e92e4a49ade390a9eb2bb0708ced863ff20551d7d8b8db

Contents?: true

Size: 341 Bytes

Versions: 41

Compression:

Stored size: 341 Bytes

Contents

#!/usr/bin/env node
/* eslint no-var: 0 */

var babylon = require("..");
var fs      = require("fs");

var filename = process.argv[2];
if (!filename) {
  console.error("no filename specified");
  process.exit(0);
}

var file = fs.readFileSync(filename, "utf8");
var ast  = babylon.parse(file);

console.log(JSON.stringify(ast, null, "  "));

Version data entries

41 entries across 35 versions & 10 rubygems

Version Path
ilog-0.3.3 node_modules/babel-core/node_modules/babylon/bin/babylon.js
ilog-0.3.3 node_modules/babel-traverse/node_modules/babylon/bin/babylon.js
optimacms-0.4.3 spec/dummy/node_modules/babylon/bin/babylon.js
optimacms-0.4.2 spec/dummy/node_modules/babylon/bin/babylon.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/babylon/bin/babylon.js
lux_assets-0.2.11 ./node_modules/babylon/bin/babylon.js
lux_assets-0.2.9 ./node_modules/babylon/bin/babylon.js
lux_assets-0.2.4 ./node_modules/babylon/bin/babylon.js
lux_assets-0.2.2 ./node_modules/babylon/bin/babylon.js
lux_assets-0.2.1 ./node_modules/babylon/bin/babylon.js
locomotivecms-3.4.0 app/javascript/node_modules/babylon/bin/babylon.js
cortex-0.1.3 spec/dummy/node_modules/babylon/bin/babylon.js
dragonfly_puppeteer-0.1.0 node_modules/babylon/bin/babylon.js
affiliator-0.2.1 node_modules/babylon/bin/babylon.js
lanes-0.8.0 node_modules/babylon/bin/babylon.js
babel-schmooze-sprockets-0.1.3 node_modules/babylon/bin/babylon.js
babel-schmooze-sprockets-0.1.2 node_modules/babylon/bin/babylon.js
babel-schmooze-sprockets-0.1.1 node_modules/babylon/bin/babylon.js
babel-schmooze-sprockets-0.1.0 node_modules/babylon/bin/babylon.js
babel-schmooze-sprockets-0.1.0.alpha.3 node_modules/babylon/bin/babylon.js