/wallace-cli

Pretty CSS analytics on the CLI

Primary LanguageJavaScriptMIT LicenseMIT

Wallace CLI

Pretty CSS analytics on the CLI.

NPM Version Build Status Known Vulnerabilities XO code style Dependencies Status Dependencies Status Project: Wallace

Install

npm install -g wallace-cli
# or
yarn add --global wallace-cli

Usage

Usage
  $ wallace https://projectwallace.com

  Options
  --format, -f Format pretty (default) or JSON
  --verbose, -v Show verbose analytics output

  Examples
  $ wallace https://projectwallace.com
  $ wallace 'body { color: red; }'
  $ echo 'html { font-size: 16px; } | wallace
  $ wallace 'html {}' --format=json
  $ cat style.css | wallace --verbose
  $ curl http://localhost/css/style.css | wallace

Example output

Example output for projectwallace.com

Related projects

  • Extract CSS - Extract all CSS from a given url, both server side and client side rendered.
  • CSS Analyzer - The analyzer that powers this module
  • Constyble - A CSS complexity linter, based on css-analyzer. Don't let your CSS grow beyond the thresholds that you provide.