Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 739 Bytes

readme.md

File metadata and controls

47 lines (31 loc) · 739 Bytes

cssa

Auditing tool for css. Checks constraints against a css files. The constraints are described in a json file.

Install

npm install cssa

Usage

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

Configuration file

The whitelist is simply the list of allowed properties. For instance:

["display", "width", "margin"]

Legacy mode

For older versions of node, which do not implement ES6, you can alternatively use script cssa-legacy.

License

cssa is licensed under the GPL-3.0 license