classspacer
Classspacer is a lightweight software utility designed to manage whitespace and class attribute organization in HTML and frontend templates. It functions as both a command-line tool and a reusable library, enabling teams to enforce consistent class naming, ordering, and formatting across a codebase. The project emphasizes deterministic output and non-destructive operation on source files.
Core features include normalization of whitespace within class attributes, deduplication of identical tokens, optional reordering of
Implementation and usage: classspacer is commonly implemented for JavaScript/TypeScript environments and is usable as a CLI
Limitations and considerations: dynamic class expressions generated at runtime may require conservative handling to avoid altering
See also: tools for code formatting and CSS class management.