truncateTruncate text with Unicode-aware word boundary handlingutils-truncatelogUtilsindex.jsStringsUses Intl.Segmenter for locale-aware word segmentation when available, making it ideal for international applications["utils","strings","truncate","unicode","emoji","i18n","locale"]Example