Skip to content

escapeCommandArg

escapeCommandArg(expr, dialect): string

Defined in: command/shell-dialect.ts:25

Escape a string to be safely used as a single argument of a command line written in the given dialect.

string

The string to escape

ShellDialect

The shell language the command line is written in

string

The escaped string