closure-compiler
Bindings to Google's Closure Compiler
Last updated 9 years ago by mprobst .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install closure-compiler 
SYNC missed versions from official npm registry.

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"

Current Tags

  • 0.2.12                                ...           latest (9 years ago)

17 Versions

  • 0.2.12                                ...           9 years ago
  • 0.2.10                                ...           9 years ago
  • 0.2.9                                ...           9 years ago
  • 0.2.8                                ...           9 years ago
  • 0.2.7                                ...           9 years ago
  • 0.2.6                                ...           11 years ago
  • 0.2.5                                ...           11 years ago
  • 0.2.4                                ...           11 years ago
  • 0.2.3                                ...           11 years ago
  • 0.2.2                                ...           11 years ago
  • 0.2.1                                ...           11 years ago
  • 0.2.0                                ...           12 years ago
  • 0.1.4                                ...           12 years ago
  • 0.1.3                                ...           12 years ago
  • 0.1.2                                ...           12 years ago
  • 0.1.1                                ...           13 years ago
  • 0.1.0                                ...           13 years ago
Maintainers (2)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE