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.

4 lines (3 loc) 159 B
declare const isFullWidth: (x: number) => boolean; declare const isWideNotCJKTNotEmoji: (x: number) => boolean; export { isFullWidth, isWideNotCJKTNotEmoji };