Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
44
const
formatBytesLiteral = (value: string): string => {
45
const
escaped = JSON.stringify(value).slice(1, -1)
46
return
`b
"${escaped}"
`
47
}
48
49
type
BodyGenerationResult = {
50
payloadLines: string[]
Callers
1
buildRequestBody
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected