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
immosquare-cleaner-0.1.52 node_modules/babylon/bin/babylon.js
immosquare-cleaner-0.1.51 node_modules/babylon/bin/babylon.js
immosquare-cleaner-0.1.50 node_modules/babylon/bin/babylon.js
immosquare-cleaner-0.1.49 node_modules/babylon/bin/babylon.js
immosquare-cleaner-0.1.48 node_modules/babylon/bin/babylon.js
immosquare-cleaner-0.1.47 node_modules/babylon/bin/babylon.js
immosquare-cleaner-0.1.46 node_modules/babylon/bin/babylon.js
immosquare-cleaner-0.1.45 node_modules/babylon/bin/babylon.js
immosquare-cleaner-0.1.44 node_modules/babylon/bin/babylon.js
immosquare-cleaner-0.1.43 node_modules/babylon/bin/babylon.js
immosquare-cleaner-0.1.42 node_modules/babylon/bin/babylon.js
immosquare-cleaner-0.1.41 node_modules/babylon/bin/babylon.js
immosquare-cleaner-0.1.40 node_modules/babylon/bin/babylon.js
ilog-0.4.1 node_modules/babel-template/node_modules/babylon/bin/babylon.js
ilog-0.4.1 node_modules/babel-traverse/node_modules/babylon/bin/babylon.js
ilog-0.4.1 node_modules/babel-core/node_modules/babylon/bin/babylon.js
ilog-0.4.0 node_modules/babel-traverse/node_modules/babylon/bin/babylon.js
ilog-0.4.0 node_modules/babel-core/node_modules/babylon/bin/babylon.js
ilog-0.4.0 node_modules/babel-template/node_modules/babylon/bin/babylon.js
ilog-0.3.3 node_modules/babel-traverse/node_modules/babylon/bin/babylon.js