JS_BEAUTIFY(1p)
π JS_BEAUTIFY π
okay so bestie, welcome to JS_BEAUTIFY(1p) β it's a page from the User Contributed Perl Documentation corner of the manual, and it's literally just here to tell you about a lil command tool that makes your javascript files pretty. yes. that's the whole gig. slay.
β¨ NAME β¨
js_beautify β the command tool that beautifies your javascript files π
like, it takes your cursed one-line spaghetti and gives it main character energy.
πΈ SYNOPSIS πΈ
js_beautify [options] FILE
js_beautify [options] -
so you either hand it a FILE, or you hand it a - and it'll read from stdin. both are valid, both are iconic, pick your fighter π
π OPTIONS π
-?,--helpβ the classic. shows you the help. no notes.-w,--overwriteβ if you pass-w, it will overwrite theFILE. like, in place. the original is gone, the glow-up has arrived π₯-o,--outputβ by default we print the beautified javascript to STDOUT. but if you do--output=newfile.js, it will write intonewfile.jsinstead. new file, new you β¨-s,--indent_size,-c,--indent_characterβ the indent duo π«Ά by default we use 4 spaces. but if you prefer 8 spaces, we can do-s=8. the power is yours, bestie.-p,--preserve_newlinesβ1by default. (that's the value, not a mood.)
ok real talk for a sec:-?and--helpare listed together with no description in the original, and-s/-care grouped as one vibe. i kept them exactly where they belong, don't come for me π
π 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.
so yes, it's free, it's Perl-flavored, it's giving generous π
okay that's the whole page, no cap. this was JS_BEAUTIFY(1p) from the User Contributed Perl Documentation, brought to you by perl v5.36.0, dated 2022-11-29 β go beautify something, bestie ππ
π¦
π¦ where this page comes from
- debian bookworm: libjavascript-beautifier-perl 0.25-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libjavascript-beautifier-perl 0.25-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libjavascript-beautifier-perl 0.25-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libjavascript-beautifier-perl 0.25-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libjavascript-beautifier-perl 0.25-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms