UNPKG

fast-string-truncated-width

Version:

A fast function for calculating where a string should be truncated, given an optional width limit and an ellipsis string.

5 lines (4 loc) 193 B
declare const isAmbiguous: (x: number) => boolean; declare const isFullWidth: (x: number) => boolean; declare const isWide: (x: number) => boolean; export { isAmbiguous, isFullWidth, isWide };