MCPcopy Index your code
hub / github.com/cameri/nostream / writeJson

Function writeJson

src/cli/commands/info.ts:110–112  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

108}
109
110const writeJson = (value: unknown): void => {
111 process.stdout.write(`${JSON.stringify(value, null, 2)}\n`)
112}
113
114const writeJsonError = (message: string, code = 1): void => {
115 process.stderr.write(`${JSON.stringify({ error: { message, code } })}\n`)

Callers 1

runInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected