github: @isAdrisal/coverage-parcsser
This utility parses the JSON output from Chrome DevTools' coverage reports and outputs the covered CSS code on a per-file basis.
Install the package with npm:
npm i coverage-parcsser -g
coverage-parcsser --file coverage.json
This will run the parser on all .css
files contained within the coverage.json report, and output each of the parsed .css
files to the current directory.
Argument | Description |
---|---|
--file | Path of the input .json file (REQUIRED) |
--select | If provided, parses only the report for this URL (OPTIONAL). Defaults to all resource URLs. Wrap url in quotes, eg. "url" |
--outdir | Output directory of the exported file(s) (OPTIONAL). Defaults to current directory. |
coverage-parcsser --file coverage.json --select "https://foo.bar/example.css" --outdir ./output