Minifies class and id attribute values in HTML files by replacing them with shorter tokens, supporting namespaces to avoid collisions. Version 0.0.2, no clear release cadence. Key differentiator: namespace support, unlike simpler minifiers. Minimal dependencies, potential memory issues with large files.
npm install class-id-minifier-nsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage of minify function with a namespace option to shorten class and id attributes.
Store mapping externally if reverse lookup is needed.
Use a unique namespace per project or build step.
Process HTML in chunks or use streaming for large files.
Use import or dynamic import: import minify from 'class-id-minifier-ns'
No dependency data recorded yet.