{"id":26450,"library":"superstartup-closure-compiler","title":"superstartup-closure-compiler","description":"A package providing a compiled .jar of Google Closure Compiler (SHA 579770a, Oct 2013) with an additional custom build that strips goog.debug calls. The package exposes two methods: getPath() and getPathSS() to retrieve paths to the vanilla and custom compiler jars respectively. Version 0.1.7 is the latest. It requires Node >=0.8.0 and is primarily used for JavaScript minification and optimization. Differentiators include a special build that removes debug logging for production builds. Note: the compiler version is very old and unmaintained since 2013, with no updates or security patches.","status":"deprecated","version":"0.1.7","language":"javascript","source_language":"en","source_url":"git@github.com:thanpolas/superstartup-closure-compiler","tags":["javascript","Closure Compiler","minification","Performance"],"install":[{"cmd":"npm install superstartup-closure-compiler","lang":"bash","label":"npm"},{"cmd":"yarn add superstartup-closure-compiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add superstartup-closure-compiler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package uses CommonJS exports; named import via ESM is not supported. Correct usage is const { getPath } = require('superstartup-closure-compiler').","wrong":"const getPath = require('superstartup-closure-compiler')","symbol":"getPath","correct":"import { getPath } from 'superstartup-closure-compiler'"},{"note":"Similarly, getPathSS is a named export in CommonJS.","wrong":"","symbol":"getPathSS","correct":"const { getPathSS } = require('superstartup-closure-compiler')"},{"note":"Package does not have a default export; use require to get object with methods.","wrong":"import compiler from 'superstartup-closure-compiler'","symbol":"default import","correct":"const compiler = require('superstartup-closure-compiler')"}],"quickstart":{"code":"const compiler = require('superstartup-closure-compiler');\nconst { exec } = require('child_process');\n\nconst jarPath = compiler.getPath();\nconst options = '--language_in ECMASCRIPT5 --js output.js --js_output_file output.min.js';\nconst command = `java -jar ${jarPath} ${options}`;\n\nexec(command, (err, stdout, stderr) => {\n  if (err) {\n    console.error(err);\n    return;\n  }\n  console.log('Compilation complete:', stdout);\n});\n","lang":"javascript","description":"Demonstrates retrieving the path to the vanilla Closure Compiler jar and executing it via child_process.exec."},"warnings":[{"fix":"Migrate to a maintained Closure Compiler package like google-closure-compiler (npm).","message":"Package uses a very old Closure Compiler build (SHA 579770a, Oct 2013). It may not work with modern JavaScript syntax (ES6+).","severity":"breaking","affected_versions":"0.1.7"},{"fix":"Switch to an actively maintained closure compiler package.","message":"Package is unmaintained since 2013, no updates or security fixes.","severity":"deprecated","affected_versions":"*"},{"fix":"Use a newer Node version and check compatibility; consider using a different package.","message":"Node engine requirement is >=0.8.0, which is extremely outdated. May not run on current Node versions without compatibility issues.","severity":"gotcha","affected_versions":">=0.8.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run: npm install superstartup-closure-compiler","cause":"Package name typo or not installed.","error":"Cannot find module 'superstartup-closure-compiler'"},{"fix":"Use: const compiler = require('superstartup-closure-compiler'); then compiler.getPath()","cause":"Incorrect import: using default import while package exports named methods.","error":"getPath is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}