text-sanctifier




Brutal text normalizer and invisible trash scrubber for modern web projects.
* Minified: (3.09 KB)
* Gzipped (GCC): (1.36 KB)
Features
* Purges zero-width Unicode garbage
* Normalizes line endings (CRLF, CR, LF) → LF
* Collapses unwanted spaces and paragraphs
* Nukes control characters (if enabled)
* Smart normalization of typographic junk (quotes, dashes, bullets, full-width punctuation)
* Keyboard-only filtering (retain printable ASCII + emoji, or restrict)
* Configurable via fine-grained flags or ready-made presets
* Includes strict, loose, and keyboard-only modes
Install
``
bash
npm install text-sanctifier
`
📦 Package & Build Info
* Source (src/
): ES2020+ ESM modules with JSDoc
* Browser Build (dist/
): Minified ESM bundle for