@nightgrey/ansi
    Preparing search index...

    Variable escapeConst

    escape: (src: string) => string = thing.escape

    Escapes all non-ASCII characters (and well-known 0x0x control chars) using backslash escape sequences.

    Type declaration

      • (src: string): string
      • Escapes all non-ASCII characters (and well-known 0x0x control chars) using backslash escape sequences.

        Parameters

        • src: string

        Returns string

        • Well-known low-ASCII control chars will be escaped using backslash, e.g. 0x0a => \n
        • Non-BMP chars will be escaped using \Uxxxxxxxx
        • Chars outside 0x20 - 0x7e range will be escaped using \uxxxxx

        Also see unescape.

    • Well-known low-ASCII control chars will be escaped using backslash, e.g. 0x0a => \n
    • Non-BMP chars will be escaped using \Uxxxxxxxx
    • Chars outside 0x20 - 0x7e range will be escaped using \uxxxxx

    Also see unescape.