colorguard
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -207,3 +207,3 @@ var visit = require('rework-visit'); | ||
var options = options || {}; | ||
var threshold = typeof options.threshold !== 'undefined' ? options.threshold : 5; | ||
var threshold = typeof options.threshold !== 'undefined' ? options.threshold : 3; | ||
options.ignore = options.ignore || []; | ||
@@ -210,0 +210,0 @@ |
{ | ||
"name": "colorguard", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Keep a watchful eye on your css colors", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -30,3 +30,3 @@ [![Build Status](https://travis-ci.org/SlexAxton/css-colorguard.svg?branch=master)](https://travis-ci.org/SlexAxton/css-colorguard) | ||
# Threshold is available via command line | ||
colorguard --file style.css --threshold 5 | ||
colorguard --file style.css --threshold 3 | ||
@@ -72,4 +72,5 @@ # The other options are too hard to type, so just pass it a json object | ||
var output = colorguard.inspect(css, { | ||
// 0 through 100. Lower is more similar. Anything below 5 warns you. | ||
threshold: 5, | ||
// 0 through 100. Lower is more similar. Anything below 3 warns you. | ||
// 3 is the default threshold, but that's mostly personal opinion | ||
threshold: 3, | ||
@@ -76,0 +77,0 @@ // This color is just ignored entirely (use with caution) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20241
157