Socket
Socket
Sign inDemoInstall

colorguard

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colorguard - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

lib/colorguard.js

@@ -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)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc