Code::TidyAll::Plugin::JSBeautifier - Use JavaScript::Beautifier with tidyall
This module requires Code::TidyAll.
In the .tidyallrc configuration file add: [JSBeautifier] select = static/**/*.js
Then run
tidyall -a
Runs js_beautify.pl of JavaScript::Beautifier, a JavaScript tidier implemented in Perl.
js_beautify.pl
cpanm Code::TidyAll
Arguments to pass to js_beautify.pl
Full path to js_beautify.pl
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.