MCPcopy
hub / github.com/tldraw/tldraw / writeStringFile

Function writeStringFile

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

Source from the content-addressed store, hash-verified

56}
57
58export async function writeStringFile(filePath: string, contents: string) {
59 await writeFile(filePath, Buffer.from(contents, 'utf-8'))
60}
61
62export async function writeFile(filePath: string, contents: Buffer) {
63 if (process.env.CI && !process.env.ALLOW_REFRESH_ASSETS_CHANGES) {

Callers 6

copyIconsFunction · 0.90
copyWatermarksFunction · 0.90
mainFunction · 0.90
writeCodeFileFunction · 0.85
writeJsonFileFunction · 0.85

Calls 1

writeFileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…