mirror of
https://github.com/beautifier/js-beautify.git
synced 2024-11-27 14:40:23 +00:00
Beautifier for javascript
68b9648a4f
This makes it easy to create a wrapper script that accepts a relative path to the input javascript file, e.g.: \\#!/bin/sh DIR="/path/to/js-beautify/scripts" java -cp ${DIR}/js.jar org.mozilla.javascript.tools.shell.Main ${DIR}/beautify-cl.js -d ${DIR} -i 3 -n -p -a "$1" |
||
---|---|---|
bin | ||
opera-userscript | ||
tests | ||
unmaintained | ||
unpackers | ||
beautify-cl.js | ||
beautify-html.js | ||
beautify.js | ||
index.html | ||
license.txt | ||
readme.txt |
JS Beautifier --------------- ...or, more specifically, all of the code powering jsbeautifier.org. This little beautifier will reformat and reindent bookmarklets, ugly javascript, unpack scripts packed by the popular Dean Edward's packer, as well as deobfuscate scripts processed by javascriptobfuscator.com. You are free to use this in any way you want, in case you find this useful or working for you. To beautify from the command-line you can use provided beautify-cl.js script, using Rhino javascript engine. See the file contents for the details. Written by Einar Lielmanis, <einar@jsbeautifier.org> Thanks to Jason Diamond, Patrick Hof, Nochum Sossonko, Andreas Schneider, Dave Vasilevsky, Vital Batmanov, Ron Baldwin, Gabriel Harrison and others.