UNPKG

@ui-tars/shared

Version:
12 lines (11 loc) 388 B
/** * Copyright (c) 2025 Bytedance, Inc. and its affiliates. * SPDX-License-Identifier: Apache-2.0 */ const stringify = (obj)=>JSON.stringify(obj, (_key, value)=>{ const MAX_LEN = 200; if ('string' == typeof value && value.length > MAX_LEN) return `${value.slice(0, MAX_LEN)}...`; return value; }, 2); export { stringify }; //# sourceMappingURL=format.mjs.map