Nachos Pillage Milwaukee

    closure-compiler
    DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/closure-compiler package

    0.2.12 • Public • Published

    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"
    

    Keywords

    none

    Install

    npm i closure-compiler

    DownloadsWeekly Downloads

    12,984

    Version

    0.2.12

    License

    MIT

    Last publish

    Collaborators

    • mprobst
    • tim-smart