wallace-cli

Pretty CSS analytics on the CLI

Usage no npm install needed!

<script type="module">
  import wallaceCli from 'https://cdn.skypack.dev/wallace-cli';
</script>

README

Wallace CLI

Pretty CSS analytics in your terminal.

NPM Version Project: Wallace

Install

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

Usage

Usage
  $ wallace 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. Used in this module.
  • 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.