Registry / devops / wallace-cli

wallace-cli

JSON →
library4.0.2jsnpmunverified

Wallace CLI is a command-line tool for analyzing CSS files and generating pretty analytics in the terminal. It provides statistics like number of rules, selectors, declarations, specificities, and more. The current stable version is 4.0.2, released occasionally. It is part of the Project Wallace ecosystem and is powered by the CSS Analyzer library. Unlike other CSS analysis tools, Wallace CLI offers a colorful table output and JSON format, making it easy to integrate into build pipelines. It requires Node.js >=20.12.0 and is designed for developers who want quick CSS quality insights from the terminal.

npm install wallace-cli
INSTALL
IMPORT
SIG · WALLACE-CLI
W
wallace-cli
devopsjavascriptv4.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

wallace
✓ npx wallace path/to/file.css
✗ wallace path/to/file.css
If installed globally, 'wallace' command works; otherwise, use npx or local npm bin. No programmatic API - CLI only.

Analyzes a CSS file and prints a formatted table of CSS statistics to the terminal.

npx wallace path/to/styles.css
Debug
Known issues
breakingVersion 4.0.0 dropped support for Node <20.12.0.
fix
Upgrade to Node >=20.12.0.
affects: <4.0.0
gotchaThe CLI outputs to stdout; if using --json, ensure proper piping or redirection.
fix
Use 'wallace file.css --json > output.json' to capture JSON.
affects: >=0.0.0
deprecatedThe --help flag can be used as -h; -h may be confused with other commands.
fix
Use --help for clarity.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'wallace-cli'
Package not installed globally or locally.
fix
Run 'npm install -g wallace-cli' or 'npx wallace-cli'.
command not found: wallace
CLI not in PATH after global install.
fix
Ensure npm global bin is in PATH, or use 'npx wallace'.
TypeError: Input must be a string or a Buffer
Stdin pipe sends empty data.
fix
Check the pipe source; ensure CSS content is provided.
Upgrade
Version history
4.0.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
wallace-cli — npm install wallace-cli · libregistry