UNPKG

@visulima/string

Version:

Functions for manipulating strings.

8 lines (5 loc) 443 B
import { getStringTruncatedWidth } from './get-string-truncated-width.mjs'; var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); const getStringWidth = /* @__PURE__ */ __name((input, options = {}) => getStringTruncatedWidth(input, { ...options, ellipsis: "", ellipsisWidth: 0, limit: Number.POSITIVE_INFINITY }).width, "getStringWidth"); export { getStringWidth };