Spaces:
Paused
Paused
Download node_modules/strip-ansi/index.d.ts from ken-q/opencode-home: direct link, hf CLI and curl.
- Browser
- Download file 369 Bytes
-
https://huggingface.co/spaces/ken-q/opencode-home/resolve/main/node_modules/strip-ansi/index.d.ts
- Command line
-
hf download hf://spaces/ken-q/opencode-home/node_modules/strip-ansi/index.d.ts
-
curl -L -o index.d.ts https://huggingface.co/spaces/ken-q/opencode-home/resolve/main/node_modules/strip-ansi/index.d.ts
369 Bytes
| /** | |
| Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string. | |
| @example | |
| ``` | |
| import stripAnsi = require('strip-ansi'); | |
| stripAnsi('\u001B[4mUnicorn\u001B[0m'); | |
| //=> 'Unicorn' | |
| stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007'); | |
| //=> 'Click' | |
| ``` | |
| */ | |
| declare function stripAnsi(string: string): string; | |
| export = stripAnsi; | |