js_beautify(1p)

js_beautify1p

Command tool to beautify your javascript files

Usage

js_beautify [options] FILE

js_beautify [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

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 4 times.

  1. 6.0–8
  2. 9
  3. 10
  4. 11
  5. 12–13

--overwrite since Debian 10 (Buster); -w since Debian 10 (Buster).

From libjavascript-beautifier-perl 0.25-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.