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.

1. Download PhantomJS from here.

2. Download the JSPacker.js file from here.

3. 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

2016-02-06_01

This entry was posted in Tools and tagged , , , . Bookmark the permalink.