MCPcopy
hub / github.com/browserless/browserless / jsonOrString

Function jsonOrString

src/utils.ts:356–357  ·  view source on GitHub ↗
(maybeJson: string)

Source from the content-addressed store, hash-verified

354};
355
356export const jsonOrString = (maybeJson: string): unknown | string =>
357 safeParse(maybeJson) ?? maybeJson;
358
359export const generateDataDir = async (
360 sessionId: string = id(),

Callers

nothing calls this directly

Calls 1

safeParseFunction · 0.85

Tested by

no test coverage detected