js_beautify.pl man page

js_beautify.pl ā€” command tool to beautify your javascript files

Synopsis

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

Options

-?, --help
-w, --overwrite

if -w, it will overwrite the "FILE"

-o, --output

By default, we will print beautified javascript to STDOUT

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

Info

2018-05-03 perl v5.26.2 User Contributed Perl Documentation