MCPcopy Create free account
hub / github.com/arktypeio/arktype / writeFile

Function writeFile

ark/fs/fs.ts:31–34  ·  view source on GitHub ↗
(path: string, contents: string)

Source from the content-addressed store, hash-verified

29export const readFile = (path: string): string => readFileSync(path).toString()
30
31export const writeFile = (path: string, contents: string): string => {
32 writeFileSync(path, contents)
33 return contents
34}
35
36export const rewriteFile = (
37 path: string,

Callers 14

writeFileUpdatesFunction · 0.90
traceFunction · 0.90
writeToCsvFunction · 0.90
cli.test.tsFile · 0.90
replaceTrackedFunction · 0.90
bundleFunction · 0.90
rewriteDtsSpecifiersFunction · 0.90
updateSnippetsEntrypointFunction · 0.90
fs.test.tsFile · 0.90
writeApiDataFileFunction · 0.85
dtsGenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected