Package Details: js-beautify 1.14.11-1

Git Clone URL: https://aur.archlinux.org/js-beautify.git (read-only, click to copy)
Package Base: js-beautify
Description: CSS, HTML & JavaScript unobfuscator and beautifier
Upstream URL: https://beautifier.io
Licenses: MIT
Conflicts: python-cssbeautifier, python-jsbeautifier
Submitter: tokland
Maintainer: tokland
Last Packager: tokland
Votes: 33
Popularity: 0.000007
First Submitted: 2010-12-04 22:02 (UTC)
Last Updated: 2023-11-12 18:00 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4

tokland commented on 2011-05-24 21:43 (UTC)

uses new python script, the binary path is the same: /usr/bin/js-beautify

tokland commented on 2011-05-24 21:33 (UTC)

btw, I just realized the python script that the first user mentioned is in fact the official one: https://github.com/einars/js-beautify/blob/master/attic/readme.txt March 27, 2011 "Here lay the scripts that were useful at a time, now they are kind of obsoleted by the python script, but you may still find them useful." So I guess I'll just this one and get rid of rhino.

tokland commented on 2011-05-24 21:21 (UTC)

1) rhino: indeed, I was unaware of that, I made a /usr/local/bin/rhino long ago and I forgot. depends=('rhino-with-interpreter') 2) The paths have changed, but I'd prefer still to copy beautify-cl.js. Try mkdir -p $SHAREDIR $BINDIR || return 1 install -m 644 ${srcdir}/${pkgname}/*.js $SHAREDIR || return 1 install -m 644 ${srcdir}/${pkgname}/attic/beautify-cl/beautify-cl.js $SHAREDIR || return 1 install -m 755 ${srcdir}/js-beautify.sh $BINDIR/js-beautify || return 1 } this works for me

louac commented on 2011-05-24 19:58 (UTC)

I was able to run it after: 1) modified /usr/bin/js-bautify as exec rhino $SHARE/beautify.js -d "$SHARE" "$@" __and not__ exec rhino $SHARE/beautify_cl.js -d "$SHARE" "$@" 2) chmod ou+x -R /usr/share/js-beautify/ install rhino_with_interpreter from aur (rhino does not provide rhino executable) or I missed something ?

lolilolicon commented on 2011-05-04 13:04 (UTC)

FYI, the python3 version depends on python3 only: https://github.com/einars/js-beautify/raw/master/python/jsbeautifier.py