Package Details: js-beautify 1.15.1-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: C0rn3j
Last Packager: C0rn3j
Votes: 33
Popularity: 0.000000
First Submitted: 2010-12-04 22:02 (UTC)
Last Updated: 2024-07-06 10:26 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4

<deleted-account> commented on 2011-11-12 16:38 (UTC)

I couldn't install it, had to change the "install" line to this: python setup.py -q install --root="${pkgdir}" install -m 755 ${srcdir}/${pkgname}/python/js-beautify $BINDIR/js-beautify || return 1 Both lines were taken from other PKGBUILDs, though, so I can't really be sure if everything's alright with them.

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