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