unused css
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example remove test.js Oct 27, 2014
lib update for url with chinese Jul 30, 2014
.gitignore package init Jul 29, 2014
LICENSE Initial commit Jul 29, 2014
README.md add unu-web Jul 31, 2014
index.js package init Jul 29, 2014
package.json update for url with chinese Jul 30, 2014

README.md

unu

unused css

GUI

unu-web

Install

npm install unu

Basic Usage

var unu = require('unu');
unu('http://m.baidu.com',function(error,css){
    if(!error){
        console.log(css.unused);
        console.log(css.used);
    }
});

Advanced Usage

var unu = require('..');
//default ANDROID,you can use ANDROID IPHONE IPAD WP
unu('http://m.baidu.com',{userAgent:'IPHONE'},function(error,css){
    if(!error){
        console.log(css.unused);
        console.log(css.used);
    }
});

ToDo

  • support link stylesheet