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

  1. string*-String

    The string to strip ansi from

Return

  1. -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'); // => Click

Todo

  • testsnormal