v3.0.1
A fast function for calculating where a string should be truncated, given an optional width limit and an ellipsis string.
Source code on GitHub