Fayland 林 > JavaScript-Beautifier > js_beautify.pl

Download:
JavaScript-Beautifier-0.17.tar.gz

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Source  

NAME ^

js_beautify.pl - command tool to beautify your javascript files

SYNOPSIS ^

    js_beautify.pl [options] FILE
    js_beautify.pl [options] -

OPTIONS ^

-?, --help
-o, --output

By default, we will print beautified javascript to STDOUT

if -o, it will override the FILE

if -output=newfile.js, it will write into newfile.js

-s, --indent_size
-c, --indent_character

By default, we use 4 spaces.

but if you prefer 8 spaces, we can do -s=8

-p, --preserve_newlines

1 by default

COPYRIGHT & LICENSE ^

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.

syntax highlighting: