Nicely Pointed Mandibles

    gclosure

    0.8.0 • Public • Published

    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)

    Keywords

    none

    Install

    npm i gclosure

    DownloadsWeekly Downloads

    27

    Version

    0.8.0

    License

    none

    Last publish

    Collaborators

    • ntakimura