Registry / devops / google-closure-compiler-windows

google-closure-compiler-windows

JSON →
library20260428.0.0jsnpmunverified

Native Windows platform distribution of Google Closure Compiler, providing the Windows executable (closure-compiler.exe) for JavaScript compilation, optimization, and minification. Current stable version is 20260428.0.0, released daily from the Closure Compiler repository. This package is specific to Windows (x64) and is one of multiple platform-specific distributions (also macOS, Linux). It is intended to be installed automatically as a dependency of the main google-closure-compiler package, which selects the correct platform package. Key differentiators: uses the native Java-free binary for Windows, no JVM required, CLI-only.

npm install google-closure-compiler-windows
INSTALL
IMPORT
SIG · GOOGLE-CLOSURE-COM
G
google-closure-compiler-windows
devopsjavascriptv20260428.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

google-closure-compiler-windows
import 'google-closure-compiler-windows'
import { compile } from 'google-closure-compiler-windows'
This is a platform binary package, not a JavaScript module. It has no JavaScript exports. Install it only if you need to manually locate the Windows binary.
google-closure-compiler
import { compile } from 'google-closure-compiler' or require('google-closure-compiler').compile
import { compile } from 'google-closure-compiler-windows'
Use the main package for the API. This package auto-selects the correct platform binary.
compiler.BINARY
const compiler = require('google-closure-compiler'); console.log(compiler.BINARY)
require('google-closure-compiler-windows')
The BINARY constant gives the path to the platform-specific binary. It's available from the main package.

Minify a JavaScript file using the main google-closure-compiler package with ADVANCED_OPTIMIZATIONS, handling errors.

const { compile } = require('google-closure-compiler'); compile({ js: ['input.js'], compilation_level: 'ADVANCED_OPTIMIZATIONS', language_out: 'ECMASCRIPT5_STRICT', warning_level: 'VERBOSE' }, (exitCode, stdOut, stdErr) => { if (exitCode !== 0) { console.error(stdErr); process.exit(exitCode); } fs.writeFileSync('output.js', stdOut); });
closure-compiler --version
Debug
Known issues
gotchaThis package only provides the Windows binary. It must be used via the main google-closure-compiler package, not directly.
fix
Install google-closure-compiler instead. This package is automatically installed as a dependency.
affects: all
gotchaThe Windows binary requires Windows 64-bit. It will not work on 32-bit Windows or other OS.
fix
For macOS, use google-closure-compiler-darwin. For Linux, use google-closure-compiler-linux.
affects: all
deprecatedVersion numbers mirror Closure Compiler releases (e.g., 20260428). Breaking changes may occur without major version bump.
fix
Pin to a specific version and test when upgrading.
affects: all
Errors
Common errors & fixes
Cannot find module 'google-closure-compiler-windows'
You are trying to require this package directly, but it is not the main entry point.
fix
Install and require 'google-closure-compiler' instead.
Error: jarfile not found
You are trying to run the Java-based version of Closure Compiler, but the Windows native package is meant to be used with the native binary.
fix
Ensure you have installed google-closure-compiler and not google-closure-compiler-java.
The term 'closure-compiler' is not recognized
The CLI command is not in PATH.
fix
Add node_modules/.bin to PATH or use npx google-closure-compiler.
Upgrade
Version history
20260428.0.0latest on npm
Audit
Dependencies
google-closure-compilerrequiredMain distribution package that selects the correct platform-specific subpackage
Agent activity
4 hits · last 30 days
node
4
Resources
google-closure-compiler-windows — npm install google-closure-compiler-windows · libregistry