There's a JavaScript version available that has feature parity with the Java version.
The Javascript version of the Closure-Compiler is
transpiled by GWT from the Java source. For more details
on the differences in behavior see the super sourced
files in the main repo.