shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
stripAnsi
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.string
This function simply strip all the ansi characters in a string
Params
- string*-String
The string to strip ansi from
Return
- -String
The new string without any ansi characters
Example
import { stripAnsi } from '@blackbyte/sugar/string';
stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007'); // => ClickTodo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space