Code::T...Beautify(3)

🌸 Code::TidyAll::Plugin::JSBeautify β€” like, the whole manual, bestie 🌸

Okay so this is the Code::TidyAll::Plugin::JSBeautify page from the User Contributed Perl Documentation collection, and it's basically a tiny little plugin page that does one thing and does it cute. Let's go πŸ’…


✨ NAME ✨

Code::TidyAll::Plugin::JSBeautify β€” the plugin that lets you use js-beautify with tidyall. That's it, that's the vibe πŸŽ€


πŸ¦‹ VERSION πŸ¦‹

version 0.84 β€” yes we're on 0.84, note it and move on bestie


πŸ’– SYNOPSIS πŸ’–

So in configuration you'd write something like this, and it's giving exactly what it needs to give:

In configuration:

[JSBeautify]
select = static/**/*.js
argv = --indent-size 2 --brace-style expand

Copy it, paste it, slay ✨


πŸ”₯ DESCRIPTION πŸ”₯

This plugin runs js-beautify (over at https://npmjs.org/package/js-beautify), which is a JavaScript tidier. That's the whole job. It tidies your JS. Iconic behaviour, honestly πŸ‘‘


🧚 INSTALLATION 🧚

First step: install npm (you can find it at https://npmjs.org/), and then run this bad boy:

npm install js-beautify -g
⚠️ Not me warning you β€” do NOT confuse this with the jsbeautify command. That one is a totally different thing, provided by the JavaScript::Beautifier module. Different js-beautify with a hyphen vs. jsbeautify without. Read it twice, iykyk πŸ’€

πŸ’œ CONFIGURATION πŸ’œ

This plugin accepts the following configuration options (there are literally two, we love a short list):

🌈 argv

Arguments to pass to js-beautify. Whatever you put here gets handed straight to the command, fr fr.

⭐ cmd

The path for the js-beautify command. By default this is just js-beautify, which means the user's PATH will be searched for the command. So like, it'll go find it for you 🫢


🌸 SUPPORT 🌸

Bugs may be submitted at https://github.com/houseabsolute/perl-code-tidyall/issues. Found something cursed? Tell them, don't suffer in silence bestie 😭


πŸŽ€ SOURCE πŸŽ€

The source code repository for Code-TidyAll can be found at https://github.com/houseabsolute/perl-code-tidyall. Go look at the source, it's right there πŸ’–


πŸ‘‘ AUTHORS πŸ‘‘

  • Jonathan Swartz <swartz@pobox.com>
  • Dave Rolsky <autarch@urth.org>

Two icons, we stan 🌟


This software is copyright (c) 2011 - 2023 by Jonathan Swartz.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

The full text of the license can be found in the LICENSE file included with this distribution.


πŸ’€ Real talk: read the license, it's free software, redistribute it responsibly, periodt.

And that's the whole page!! Written by the perl docs crew, perl v5.42.0, dated 2024-03-08, and the header up top said Code::T...Beautify(3) because someone out there truncates long names and frankly we respect the commitment to the bit. πŸ’œβœ¨

πŸ“¦ where this page comes from