Questionnaire-of-the-Facebo.../node_modules/strip-ansi/index.d.ts

16 lines
349 B
TypeScript
Raw Normal View History

2021-03-11 01:43:28 +00:00
/**
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;