Sha256: 5b3ccabb3711c6b471307759b2d9c3ebbf8a3b54400963c9c914ef840a8cc2aa
Contents?: true
Size: 462 Bytes
Versions: 17
Compression:
Stored size: 462 Bytes
Contents
#! /usr/bin/env node global.sys = require(/^v0\.[012]/.test(process.version) ? "sys" : "util"); var fs = require("fs"); var uglify = require("uglify-js"), // symlink ~/.node_libraries/uglify-js.js to ../uglify-js.js jsp = uglify.parser, pro = uglify.uglify; var code = fs.readFileSync("embed-tokens.js", "utf8").replace(/^#.*$/mg, ""); var ast = jsp.parse(code, null, true); // trololo function fooBar() {} console.log(sys.inspect(ast, null, null));
Version data entries
17 entries across 17 versions & 2 rubygems