@ac-essentials/misc-util
    Preparing search index...

    Variable escapeCommandConst

    escapeCommand: (cmd: string) => string = ...

    Escapes any characters in a string that might be used to trick a shell command into executing arbitrary commands.

    It uses different escaping mechanisms depending on the current platform:

    • On Windows, it uses caret (^) to escape special characters.
    • On POSIX-compliant systems, it uses backslash () to escape special characters.

    Type Declaration

      • (cmd: string): string
      • Parameters

        • cmd: string

          The command to escape

        Returns string

        The escaped command