Something went wrong. Try again.
source dump of claude code forked from oppi.li/claude-code
Something went wrong. Try again.
383 B · 20 lines
TypeScript
at main
123456789101112131415161718192021import wrapAnsiNpm from 'wrap-ansi'
type WrapAnsiOptions = { hard?: boolean wordWrap?: boolean trim?: boolean}
const wrapAnsiBun = typeof Bun !== 'undefined' && typeof Bun.wrapAnsi === 'function' ? Bun.wrapAnsi : null
const wrapAnsi: ( input: string, columns: number, options?: WrapAnsiOptions,) => string = wrapAnsiBun ?? wrapAnsiNpm
export { wrapAnsi }