gclosure

Google Closure Compiler and Stylesheets

npm install gclosure
5 downloads in the last week
17 downloads in the last month

gclosure is wrapper for google closure compiler and stylesheets

Installation

npm install gclosure

Usage

On Command Line/Prompt

$ closure-compiler js/app.js

or

$ closure-stylesheets css/index.css

On JavaScript Code

var gclosure = require("gclosure"),
    jsfile = "js/app.js",
    cssfile = "css/index.css";

gclosure.compiler(jsfile, {
    stdout: function(data) {
        console.log("" + data);
    },
    stderr: function(data) {
        console.log("" + data);
    }
    }, function(err) {
        console.log(err);
    }
);

gclosure.stylesheets(cssfile, {
    stdout: function(data) {
        console.log("" + data);
    },
    stderr: function(data) {
        console.log("" + data);
    }
    }, function(err) {
        console.log(err);
    }
);

Questions, comments? Hit me up. (n.takimura [at] gmail.com)

npm loves you