Beautifier for javascript
Go to file
Jess Thrysoee 68b9648a4f Add install_dir option (-d).
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"
2010-08-22 15:53:54 +08:00
bin beaufify_js script updates by Gabriel Harrison 2009-11-27 04:54:21 +02:00
opera-userscript Updated paths in script and changed name of generated user script 2010-06-04 15:47:26 +08:00
tests Fix hugely ugly regression 2010-08-07 02:04:14 +03:00
unmaintained Opera user script is no longer unmaintained so moving to root directory 2010-06-04 15:47:25 +08:00
unpackers Maintenance, moving the code around. 2010-03-16 01:24:38 +02:00
beautify-cl.js Add install_dir option (-d). 2010-08-22 15:53:54 +08:00
beautify-html.js Maintenance, moving the code around. 2010-03-16 01:24:38 +02:00
beautify.js Default keep_array_indentation to false 2010-08-13 15:14:03 +03:00
index.html Add experimental brace-on-own-line support. Yes. 2010-03-19 18:20:46 +02:00
license.txt I just wanted a nicer commit message here. 2009-12-12 12:49:34 +02:00
readme.txt Add missing surname to Vital Batmanov as well 2010-03-16 01:32:28 +02:00

 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.