Spaces:
Paused
Paused
Download node_modules/strip-ansi/index.js from ken-q/opencode-home: direct link, hf CLI and curl.
- Browser
- Download file 154 Bytes
-
https://huggingface.co/spaces/ken-q/opencode-home/resolve/main/node_modules/strip-ansi/index.js
- Command line
-
hf download hf://spaces/ken-q/opencode-home/node_modules/strip-ansi/index.js
-
curl -L -o index.js https://huggingface.co/spaces/ken-q/opencode-home/resolve/main/node_modules/strip-ansi/index.js
154 Bytes
| ; | |
| const ansiRegex = require('ansi-regex'); | |
| module.exports = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string; | |