# node-closure **Repository Path**: mirrors_rubenv/node-closure ## Basic Information - **Project Name**: node-closure - **Description**: Binding to Google Closure Compiler - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2026-01-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README node-closure ============ A wrapper to the Google Closure compiler tool. It runs the jar file in a child process and returns the results in a callback. ## Usage var cc = require('closure-compiler') var fs = require('fs') var options = { some : 'flag' , values : ['1', '2'] } function aftercompile (err, stdout, stderr) { if (err) throw err var mycompiledcode = stdout } cc.compile(fs.readFileSync('lib/index.js'), options, aftercompile) // The same as: // $ java -jar path/to/closure.jar --some "flag" --values "1" --values "2"