Auditing tool for css. Checks constraints against a css files. The constraints are described in a json file.
npm install cssa
cssa [options] <css_file_paths>
Options:
-w, --whitelist <whitelist> list of allowed properties
-o, --output <output> path to json output file
-h, --help output usage information
e.g.:
$ cssa hello_world.css
The whitelist is simply the list of allowed properties. For instance:
["display", "width", "margin"]
For older versions of node, which do not implement ES6, you can alternatively use script cssa-legacy
.
cssa is licensed under the GPL-3.0 license