MCPcopy Create free account
hub / github.com/massCodeIO/massCode / shellAnsiCString

Function shellAnsiCString

src/renderer/components/http/requestPreview.ts:147–149  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

145}
146
147function shellAnsiCString(value: string): string {
148 return `$'${value.replaceAll('\\', '\\\\').replaceAll('\'', '\\\'')}'`
149}
150
151function bodyLines(draft: HttpRequestDraft): string[] {
152 if (

Callers 1

buildCurlPreviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected