mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-23 08:45:50 +00:00
This reverts commit c445f43f8d.
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
import 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 }
|
||||
Reference in New Issue
Block a user