PrettyCSS is a CSS3-compliant parser, lint checker, and pretty printer for Node.js and browsers. It validates CSS property names and values, beautifies code to standard formats, and can minify styles. Version 0.3.19 (last release) has seen no updates since 2014; the project is in maintenance mode with no active development. It offers unique CSS3 support and thorough value validation compared to alternatives like CSSO or clean-css, but lacks modern features like PostCSS compatibility.
npm install PrettyCSSNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses a CSS file, lints it, and beautifies it with 2-space indentation.
Consider using a maintained alternative like PostCSS or stylelint.
Always verify output against a browser CSS parser.
Use stylelint for customizable linting.
Use import PrettyCSS from 'prettycss'; or const PrettyCSS = require('prettycss').default;Pre-process CSS with a tool like PostCSS to strip unsupported rules, or avoid using modern syntax.
Run npm install prettycss and ensure the project uses CommonJS or ESM correctly.
No dependency data recorded yet.