JS_BEAUTIFY(1)

πŸ“¦
version 0.25 Β· 2 versions
, in fedora 43

✨ 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 the FILE. 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 into newfile.js instead. 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 β€” 1 by default. so your newlines are getting preserved unless you say otherwise πŸŽ€
ok quick vibe check: -s/--indent_size and -c/--indent_character are listed together in the original, and the "4 spaces by default" + "-s=8" note belongs to them, so don't @ me πŸ™ˆ

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