Registry / devops / superstartup-closure-compiler

superstartup-closure-compiler

JSON →
library0.1.7jsnpmunverified

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.

npm install superstartup-closure-compiler
INSTALL
IMPORT
SIG · SUPERSTARTUP-CLOSU
S
superstartup-closure-compiler
devopsjavascriptv0.1.7
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.

getPath
import { getPath } from 'superstartup-closure-compiler'
const getPath = require('superstartup-closure-compiler')
Package uses CommonJS exports; named import via ESM is not supported. Correct usage is const { getPath } = require('superstartup-closure-compiler').
getPathSS
const { getPathSS } = require('superstartup-closure-compiler')
Similarly, getPathSS is a named export in CommonJS.
default import
const compiler = require('superstartup-closure-compiler')
import compiler from 'superstartup-closure-compiler'
Package does not have a default export; use require to get object with methods.

Demonstrates retrieving the path to the vanilla Closure Compiler jar and executing it via child_process.exec.

const compiler = require('superstartup-closure-compiler'); const { exec } = require('child_process'); const jarPath = compiler.getPath(); const options = '--language_in ECMASCRIPT5 --js output.js --js_output_file output.min.js'; const command = `java -jar ${jarPath} ${options}`; exec(command, (err, stdout, stderr) => { if (err) { console.error(err); return; } console.log('Compilation complete:', stdout); });
Debug
Known issues
breakingPackage uses a very old Closure Compiler build (SHA 579770a, Oct 2013). It may not work with modern JavaScript syntax (ES6+).
fix
Migrate to a maintained Closure Compiler package like google-closure-compiler (npm).
affects: 0.1.7
deprecatedPackage is unmaintained since 2013, no updates or security fixes.
fix
Switch to an actively maintained closure compiler package.
affects: *
gotchaNode engine requirement is >=0.8.0, which is extremely outdated. May not run on current Node versions without compatibility issues.
fix
Use a newer Node version and check compatibility; consider using a different package.
affects: >=0.8.0
Errors
Common errors & fixes
Cannot find module 'superstartup-closure-compiler'
Package name typo or not installed.
fix
Run: npm install superstartup-closure-compiler
getPath is not a function
Incorrect import: using default import while package exports named methods.
fix
Use: const compiler = require('superstartup-closure-compiler'); then compiler.getPath()
Upgrade
Version history
0.1.7latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Resources
superstartup-closure-compiler — npm install superstartup-closure-compiler · libregistry