linwenling
2023-08-24 ba911169712067ed25e6c757cc5a2b5b4e0ea670
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string.
 
@example
```
import stripAnsi from 'strip-ansi';
 
stripAnsi('\u001B[4mUnicorn\u001B[0m');
//=> 'Unicorn'
 
stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
//=> 'Click'
```
*/
export default function stripAnsi(string: string): string;