unused css
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
lib
.gitignore
LICENSE
README.md
index.js
package.json

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