With version 3, text-clipper
has become a Deno-first library and is now available on Jsr.io. Instructions for installation on Node.js/Bun are still included.
Other changes
- Fix #18: Don't include spaces before the indicator.
- Fix #19: Introduce a new option
insertIndicatorAtLinebreak
(default:true
). If you want to
keep the behavior oftext-clipper
v2, you should set this back tofalse
. - Tweak in behavior: The indicator is never inserted if only whitespace remains after the
clipping point.