Packing/Unpacking Javascript from DOS
Here's one way to pack and unpack Javascript from the Windows' command line. For this we use PhantomJS and Dean Edwards' Javascript Compressor version 3.0.
- Download PhantomJS from here
- Download the JSPacker.js file from the Tools page
- Put everything in a folder or on your desktop then in DOS type the following:
C:\> phantomjs jspacker.js pack in.txt out.txt
-or-
C:\> phantomjs jspacker.js unpack in.txt out.txt