{"library":"google-closure-compiler","type":"library","category":null,"description":"The Google Closure Compiler npm package (v20260602.0.0) provides the official Closure Compiler binary for JavaScript checking, optimization, and minification. Released monthly from the upstream Closure Compiler repository. It supports three execution modes: a native binary (Linux/macOS/Windows), a Java jar (requires Java), and an npx runner. Key differentiator: offers both simple and advanced compilation levels (including dead code elimination, type checking, and global renamings) unmatched by simpler minifiers like UglifyJS or Terser. It also includes Grunt and Gulp plugins, and an official webpack plugin. Note: the installed package contains a native binary or Java jar, not JavaScript. The Java version generally yields faster compilations for large projects.","language":"javascript","status":"active","version":"20260602.0.0","tags":["javascript","compiler","optimizer","minifier","closure","gulpplugin","gruntplugin"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install google-closure-compiler","imports":["import compiler from 'google-closure-compiler'","import compiler from 'google-closure-compiler';\nconst cc = new compiler.compiler({ js: 'in.js', compilation_level: 'SIMPLE' })","import gulpPlugin from 'google-closure-compiler/gulp'","import gruntPlugin from 'google-closure-compiler/grunt'"]},{"cmd":"yarn add google-closure-compiler","imports":[]},{"cmd":"pnpm add google-closure-compiler","imports":[]}],"homepage":"https://developers.google.com/closure/compiler/","github":"https://github.com/ChadKillingsworth/closure-compiler-npm","docs":null,"changelog":null,"pypi":null,"npm":"google-closure-compiler","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}