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.
Parameters
Section titled “Parameters”number
The opening ANSI code.
number
The closing ANSI code.
Returns
Section titled “Returns”A function that wraps the string in ANSI codes.
(input) => string