CSS Colorguard Node.js 扩展开源项目

我要开发同款
匿名用户2014年08月12日
82阅读

技术信息

开源地址
https://github.com/SlexAxton/css-colorguard
授权协议
Apache

作品详情

CSSColorguard是一个Node.js扩展,用来分析CSS并标出不必要的接近的颜色值冗余

示例代码:

var colorguard = require('colorguard');var fs = require('fs');var css = fs.readFileSyc('./file.css', 'utf8');var output = colorguard.ispect(css, {  // 0 through 100. Lower is more similar. Aythig below 3 wars you.  // 3 is the default threshold, but that's mostly persoal opiio  threshold: 3,  // This color is just igored etirely (use with cautio)  igore: ["#030303"],  // These color combiatios are igored (usually use this)  whitelist: [["#000000", "#010101"]]});

功能介绍

CSS Colorguard 是一个 Node.js 扩展,用来分析CSS并标出不必要的接近的颜色值冗余 示例代码:
var colorguard = require('colorguard...

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论