Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/okikio/undent. undent removes extra leading spaces from template literals and multi‑line strings. jsr.io/@okikio/undent
dedent indent outdent typescript
Something went wrong. Try again.
feat(unicode): Add Unicode-aware alignment helpers master
Add a configurable columnOffset hook to undent so alignment can follow something other than raw UTF-16 offsets. This introduces the @okikio/undent/unicode subpath with terminal-style width helpers, generated East Asian Width tables, and a sync script that keeps those tables auditable against Unicode upstream. Wire the new subpath into Deno and npm exports, document when to opt into Unicode visual alignment, and cover the new API with dedicated tests. While threading the new option through the pipeline, also preserve inherited trim settings, keep non-structural Unicode whitespace intact, and avoid mutating frozen aligned wrappers so the alignment path stays predictable for callers.
Author Okiki Ojo Date (May 22, 2026, 6:16 AM UTC) Commit 35ca2d4c 35ca2d4c9d44c46e3217a5ba0478004217835161 Parent 5dff082a 5dff082a28cc583cc4d8ec7d2a29d31843995313