pangu.js
Opinionated paranoid text spacing in JavaScript
...It uses rule-based detection to walk text and add spaces where needed without altering the characters themselves. The library runs in browsers or Node.js, and can process raw strings, DOM nodes, or entire documents. Because it’s idempotent, applying it repeatedly won’t keep adding extra gaps, which makes it safe in pipelines. It’s a pragmatic tool for blogs, documentation, and apps that present multilingual content.