summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/yargs/node_modules/strip-ansi/index.d.ts
blob: 44e954d0c724d82e07bbb484f05fcbf817347b03 (plain)
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;