MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / encode

Function encode

shared/rison.ts:187–189  ·  view source on GitHub ↗
(v: JSONValue | (JSONValue & {toJSON?: () => string}))

Source from the content-addressed store, hash-verified

185 *
186 */
187export function encode(v: JSONValue | (JSONValue & {toJSON?: () => string})) {
188 return enc(v);
189}
190
191/**
192 * rison-encode a javascript object without surrounding parens

Callers 1

parseMethod · 0.70

Calls 1

encFunction · 0.85

Tested by

no test coverage detected