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.
perf(embed): Avoid re-aligning identical snippet-column pairs master
Repeated embed() renders were still rebuilding aligned text when the same dedented snippet landed at the same insertion column. That turned common SQL and code-block templates into repeated work even after the output shape was already known. The new path reuses aligned output only when the rendered shape truly matches: the dedented snippet text and the exact pad string. alignText() also does less intermediate work. Tests and benchmarks keep those boundaries honest under column churn, eviction pressure, and oversized inputs.
Author Okiki Ojo Date (May 24, 2026, 7:16 AM UTC) Commit 30672fc6 30672fc6c6f2c153eca220d2c7a4157acde41b7f Parent 2cac8ea4 2cac8ea48525493850eb4cc5a0af8aa5d354eaa9