Skip to content

createAnsiColor

createAnsiColor(open, close): (input) => string

Defined in: packages/theme/dist/index.d.mts:14

Creates a function that wraps a string in ANSI codes.

number

The opening ANSI code.

number

The closing ANSI code.

A function that wraps the string in ANSI codes.

(input) => string