MCPcopy
hub / github.com/tldraw/tldraw / writeJsonFile

Function writeJsonFile

internal/scripts/lib/file.ts:88–90  ·  view source on GitHub ↗
(filePath: string, contents: unknown)

Source from the content-addressed store, hash-verified

86}
87
88export async function writeJsonFile(filePath: string, contents: unknown) {
89 await writeStringFile(filePath, JSON.stringify(contents, null, '\t') + '\n')
90}

Callers 4

copyIconsFunction · 0.90
mainFunction · 0.90
checkPackageJsonScriptsFunction · 0.90
checkTsConfigsFunction · 0.90

Calls 1

writeStringFileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…