Skip to content
1 min read · 57 words

Variable: escapeShellArgs

ts
const escapeShellArgs: (args: readonly string[]) => Promise<string> =
  quoteShellArgs;

Defined in: src/batteries/sandbox/escape.ts:105

Compatibility alias for consumers that describe this operation as escaping.

Quote argv using SRT's maintained POSIX implementation.

The import is deliberately lazy: SRT is an optional peer and is ESM-only.

Parameters

ParameterType
argsreadonly string[]

Returns

Promise<string>