js_beautify.pl - command tool to beautify your javascript files
js_beautify.pl [options] FILE js_beautify.pl [options] -
By default, we will print beautified javascript to STDOUT
if -o, it will override the FILE
FILE
if -output=newfile.js, it will write into newfile.js
newfile.js
By default, we use 4 spaces.
but if you prefer 8 spaces, we can do -s=8
1 by default
Copyright 2009 Fayland Lam, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install JavaScript::Beautifier, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JavaScript::Beautifier
CPAN shell
perl -MCPAN -e shell install JavaScript::Beautifier
For more information on module installation, please visit the detailed CPAN module installation guide.