---
name: "js_beautify"
section: "1p"
platform: "linux"
package: "libjavascript-beautifier-perl"
version: "0.25-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/js_beautify"
---

# js\_beautify(1p)

command tool to beautify your javascript files

## NAME

js\_beautify - command tool to beautify your javascript files

## SYNOPSIS

```
    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

## 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.
