MCPcopy Create free account
hub / github.com/apache/maka / powerShellQuote

Function powerShellQuote

packages/runtime/src/__tests__/shell-run-manager.test.ts:2940–2942  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

2938}
2939
2940function powerShellQuote(value: string): string {
2941 return `'${value.replaceAll("'", "''")}'`;
2942}
2943
2944function cmdQuote(value: string): string {
2945 return `"${value.replaceAll('"', '\\"')}"`;

Callers 1

nodeCommandFunction · 0.85

Calls 1

replaceAllMethod · 0.65

Tested by

no test coverage detected