{"repo":"macbre/analyze-css","free":true,"listed":false,"github":"https://github.com/macbre/analyze-css","clone":"git clone https://github.com/macbre/analyze-css.git","description":"CSS selectors complexity and performance analyzer","language":"JavaScript","stars":697,"topics":["css-source","css-selectors-complexity","css","metrics","webperf","webperformance","phantomas","sass","dart-sass","performance-analyzer"],"license":"BSD-2-Clause","category":"analytics","readme_excerpt":"analyze-css =========== CSS selectors complexity and performance analyzer. analyze-css is built as a set of rules bound to events fired by CSS parser. Each rule can generate metrics and add \"offenders\" with more detailed information (see Usage section for an example). Install analyze-css comes as a \"binary\" for command-line and as CommonJS module. Run the following to install them globally: or to install from GitHub's repository: Usage Command line tool You can use analyze-css \"binary\" to analyze local CSS files or remote CSS assets: You can provide CSS via stdin as well (notice the dash: - ): This will emit JSON formatted results on stdout . Use --pretty (or -p shortcut) option to make the output readable for human beings. Basic HTTP authentication can be provided through the options --auth-user and --auth-pass . HTTP proxy (e.g. http://localhost:8080 ) can be provided via: --proxy or -x option HTTP PROXY env variable CommonJS module grunt task Created by @DeuxHuitHuit It uses configurable threshold and compares the analyze-css result with it. Results Metrics base64Length : total length of base64-encoded data in CSS source (will warn about base64-encoded data bigger than 4 kB) redundantBodySelectors : number of redundant body selectors (e.g. body .foo , section body h2 , but not body h1 ) redundantChildNodesSelectors : number of redundant child nodes selectors (e.g. ul li , table tr ) colors : number of unique colors used in CSS comments : number of comments in CSS source co","default_branch":null,"files":null,"tree":[],"storefront":"/r/macbre","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/macbre/analyze-css/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}