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

Function toJson

src/cli/commands/config.ts:30–42  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

28type ValueType = 'inferred' | 'json'
29
30const toJson = (value: unknown): string => {
31 return JSON.stringify(
32 value,
33 (_key, entry) => {
34 if (typeof entry === 'bigint') {
35 return entry.toString()
36 }
37
38 return entry
39 },
40 2,
41 )
42}
43
44const serialize = (value: unknown): string => {
45 if (typeof value === 'bigint') {

Callers 2

runConfigListFunction · 0.85
runConfigGetFunction · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected