Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
broccoli-colorguard
Advanced tools
Broccoli wrapped Colorguard - Keep a watchful eye on your css colors
As of the first iteration of this plugin, colorguard is run once per file, not as a sum total of all files. This is wrong, but it's a start. The best way to use this is after a concatenation step (or precompilation step that includes concatenation) in broccoli.
$ npm install --save broccoli-colorguard
var compileSass = require('broccoli-sass');
var colorguard = require('broccoli-colorguard');
// This doesn't have to be sass. It could be broccoli-concat, or broccoli-uglify
// or any other broccoli plugin that results in a single output file.
var cssTree = compileSass(inputTree, 'myapp/app.scss', 'assets/app.css', {
sassoptions: 'go here'
});
// Colorguard always returns exactly what you gave it. But it might throw errors before that
// happens. In this case, it gets the full built output from sass so it knows how to parse it.
cssTree = colorguard(cssTree, {
threshold: 3,
ignore: ['#555555'],
whitelist: [['#000000', '#010101']]
});
module.exports = cssTree;
Initialize a new colorguard with the given string of regular CSS. Optionally supply an object with options as the last argument.
These are blindly passed to colorguard. See options there.
Apache 2
Heavily cargo-culted from kevva/broccoli-rework
FAQs
Broccoli wrapped css-colorguard.
The npm package broccoli-colorguard receives a total of 3 weekly downloads. As such, broccoli-colorguard popularity was classified as not popular.
We found that broccoli-colorguard demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.