// package
has-ansi
type: "module"
// preferences
// replacements (1)
snippet::has-ansi
Simple or drop-in replacementThis package is no longer necessary. You can use the `includes` method on the string to check if a specific ANSI byte is present.
// example
string.includes('\u001b') ||
string.includes('\u009b');