Go to repository

Function shellEscape

Escape a string or array of strings replacing all quote and backslashes appearing in it.

Parameters

  • stringOrArray: string | string[]

    The string or array of strings to escape.

Returns string | string[]

The escaped string.