README
node-ansi-stripper
Strip ANSI color codes
Basically ripped from SO.
If you find yourself in a situation where you're streaming a colored repl somewhere else, such as a browser, you can use this module to escape the terminal ansi colors.
Strip ansi color codes from a string
<script type="module">
import ansiStripper from 'https://cdn.skypack.dev/ansi-stripper';
</script>
Basically ripped from SO.
If you find yourself in a situation where you're streaming a colored repl somewhere else, such as a browser, you can use this module to escape the terminal ansi colors.