Socket
Socket
Sign inDemoInstall

closure-compiler

Package Overview
Dependencies
1
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    closure-compiler

Bindings to Google's Closure Compiler


Version published
Maintainers
2
Install size
9.51 MB
Created

Readme

Source

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

Last updated on 04 Nov 2015

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc