Skip to content
/ cssa Public

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

License

Notifications You must be signed in to change notification settings

c8y3/cssa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published