Skip to content
1 min read · 47 words

Function: quoteShellArgs()

ts
function quoteShellArgs(args: readonly string[]): Promise<string>;

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

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>