function
stripANSI
@param input
The string to remove ANSI escape codes from.
@returns
The string with ANSI escape codes removed.
import { stripANSI } from "bun";
console.log(stripANSI("\u001b[31mhello\u001b[39m")); // "hello"function
The string to remove ANSI escape codes from.
The string with ANSI escape codes removed.
import { stripANSI } from "bun";
console.log(stripANSI("\u001b[31mhello\u001b[39m")); // "hello"