JS_BEAUTIFY(1)
β¨ NAME β¨
okay so bestie, welcome to js_beautify.pl β it's the command line tool that beautifies your javascript files π
like it takes your cursed little minified spaghetti and makes it pretty. periodt.
πΈ SYNOPSIS πΈ
js_beautify.pl [options] FILE
js_beautify.pl [options] -
so you either hand it a FILE or you hand it a - (which is the "read from stdin, I'm feeling mysterious" option π«Ά).
π OPTIONS π
-?,--helpβ the classic "help me pls" move π₯Ί shows you the help.-w,--overwriteβ if you pass-w, it will overwrite theFILE. like it just goes in there and rewrites your file in place. no cap.-o,--outputβ by default, we will print beautified javascript to STDOUT β¨ but if you do--output=newfile.js, it will write intonewfile.jsinstead. iconic behaviour honestly.-s,--indent_sizeβ the indent size, bestie. π-c,--indent_characterβ the character used for indenting π by default, we use 4 spaces. but if you prefer 8 spaces, we can do-s=8π yes really, that's the move.-p,--preserve_newlinesβ1by default. so your newlines are getting preserved unless you say otherwise π
ok quick vibe check:-s/--indent_sizeand-c/--indent_characterare listed together in the original, and the "4 spaces by default" + "-s=8" note belongs to them, so don't @ 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. slay.
and that's the whole page fr fr β this was the JS_BEAUTIFY(1) manual, living in the User Contributed Perl Documentation section, from perl v5.42.0, dated 2025-07-25 π¦ mwah, go beautify something πβ¨
π¦ where this page comes from
- fedora 43: perl-JavaScript-Beautifier 0.25-23.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms