A Node.js wrapper for Google Closure Compiler that automatically downloads and sets up a JRE (from OpenJDK) and the compiler JAR. Version 1.6.1 (circa 2015) is the last stable release. This project is **deprecated** and no longer maintained; users should migrate to google-closure-compiler or google-closure-compiler-js. Key differentiator: self-contained (bundles JRE), but outdated compared to official or Java-free alternatives.
npm install closurecompilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage: compile a JavaScript file with advanced optimizations and Node.js externs.
Migrate to google-closure-compiler or google-closure-compiler-js
Install Java beforehand to avoid the download
Use compilation_level instead of compilationLevel
Redirect stdout to file: ccjs files > output.js
Install Java or ensure JAVA_HOME is set
Increase JVM heap via options: -xmx2048m
Install globally with -g or check Java installation