A streaming interface for Google Closure Compiler that provides full pipe support for Node.js streams. Version 0.1.15 is the latest stable release. It wraps the Closure Compiler Java application as a Node.js stream, allowing it to be used in gulp pipelines or with plain streams. Key differentiators from other Closure Compiler wrappers are its simple stream-based API and support for Gulp with sourcemaps. It supports module definitions and custom jar paths. The package is minimal and focuses on streaming rather than complex configuration.
npm install closure-compiler-streamNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a read stream from a source file, pipes through the Closure Compiler, and writes the minified output to another file.
Ensure Java (JRE) is installed and available in PATH.
Refer to the Closure Compiler flags documentation and use correct flag names.
Always pipe from a readable stream into closure() and then to a writable stream.
Migrate to google-closure-compiler package which provides a similar API and is actively maintained.
Install Java (JRE) and ensure 'java' command is available.
Ensure piping is set up correctly: source.pipe(closure()).pipe(dest);
Use require('closure-compiler-stream') and call it directly as closure().No dependency data recorded yet.