@visulima/string
Version:
Functions for manipulating strings.
12 lines (7 loc) • 608 B
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
const getStringTruncatedWidth = require('./get-string-truncated-width.cjs');
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
const getStringWidth = /* @__PURE__ */ __name((input, options = {}) => getStringTruncatedWidth.getStringTruncatedWidth(input, { ...options, ellipsis: "", ellipsisWidth: 0, limit: Number.POSITIVE_INFINITY }).width, "getStringWidth");
exports.getStringWidth = getStringWidth;