🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

closure-compiler

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
n

closure-compiler

Bindings to Google's Closure Compiler

0.2.12
latest
88

Supply Chain Security

100

Vulnerability

71

Quality

78

Maintenance

100

License

Repository has been archived by the owner.

AI-detected possible typosquat

Supply chain risk

There is a package with a similar name that is downloaded much more often.

Did you mean

google-closure-compiler

Shell access

Supply chain risk

This module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.

Found 1 instance in 1 package

Version published
Weekly downloads
10K
17.86%
Maintainers
2
Weekly downloads
 
Created
Issues
4

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']
  , 'checks-only' : true // Pass true for parameters that take no value.
  }

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"

FAQs

Package last updated on 04 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts