friendly-truncate

Human-friendly truncation preferring word boundaries and the middle of the string.

Browse on unpkg