JS_BEAUTIFY(1p)

πŸ“¦
version 0.25 Β· 2 versions
  • 0.25 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.25 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 the FILE. 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 into newfile.js instead. 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 β€” 1 by default. (that's the value, not a mood.)
ok real talk for a sec: -? and --help are listed together with no description in the original, and -s/-c are grouped as one vibe. i kept them exactly where they belong, don't come for 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.

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