MCPcopy Create free account
hub / github.com/scalar/scalar / formatBytesLiteral

Function formatBytesLiteral

packages/snippetz/src/plugins/python/python3/python3.ts:44–47  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

42}
43
44const formatBytesLiteral = (value: string): string => {
45 const escaped = JSON.stringify(value).slice(1, -1)
46 return `b"${escaped}"`
47}
48
49type BodyGenerationResult = {
50 payloadLines: string[]

Callers 1

buildRequestBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected