Node.js wrapper for Google's Closure Compiler Java tool. v0.2.12 – stable but infrequent releases, last updated 2019. Runs the Closure Compiler JAR in a child process and returns compiled JavaScript via callback. Provides a simple API for advanced compilation and dead code elimination, but requires Java runtime. Alternatives like google-closure-compiler offer more frequent updates.
npm install closure-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compile a JavaScript file with advanced optimizations using Closure Compiler asynchronously.
Install Java Runtime Environment (JRE) and ensure java is in PATH.
Wrap compile() in a Promise manually or use a wrapper.
For array options, set as array in options object; the wrapper handles repetition.
Ensure java is installed and closure-compiler.jar is bundled.
Use named import: import { compile } from 'closure-compiler'Run npm install closure-compiler
No dependency data recorded yet.