mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2024-11-15 16:21:07 +07:00
2095e6ffe3
Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
16 lines
349 B
TypeScript
16 lines
349 B
TypeScript
/**
|
|
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;
|