1 load("build/js/writeFile.js");
2 load("build/js/base2.js");
3 load("build/js/Packer.js");
4 load("build/js/Words.js");
7 var inFile = arguments[0];
8 var outFile = arguments[1] || inFile.replace(/\.js$/, "pack.js");
14 var script = readFile(inFile);
15 var header = script.match(/\/\*(.|\n)*?\*\//)[0];
16 var packer = new Packer;
17 var packedScript = packer.pack(script, base62, shrink);
19 writeFile(outFile, header + "\n" + packedScript);