Scroll to navigation

Code::TidyAll::Plugin::JSBeautify(3pm) User Contributed Perl Documentation Code::TidyAll::Plugin::JSBeautify(3pm)

NAME

Code::TidyAll::Plugin::JSBeautify - Use js-beautify with tidyall

VERSION

version 0.55

SYNOPSIS

   In configuration:

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

DESCRIPTION

Runs js-beautify <https://npmjs.org/package/js-beautify>, a JavaScript tidier.

INSTALLATION

Install npm <https://npmjs.org/>, then run

    npm install js-beautify -g

Do not confuse this with the "jsbeautify" package (without the dash).

CONFIGURATION

argv
Arguments to pass to js-beautify
cmd
Full path to js-beautify

SUPPORT

Bugs may be submitted through <https://github.com/houseabsolute/perl-code-tidyall/issues>.

I am also usually active on IRC as 'drolsky' on "irc://irc.perl.org".

AUTHORS

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

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 - 2016 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.

2017-01-06 perl v5.24.1