MCPcopy Index your code
hub / github.com/remix-run/react-router / writeFile

Function writeFile

scripts/utils/fs.ts:32–34  ·  view source on GitHub ↗
(filename: string, data: string)

Source from the content-addressed store, hash-verified

30}
31
32export function writeFile(filename: string, data: string): void {
33 fs.writeFileSync(filename, data);
34}
35
36export function readJson(filename: string): any {
37 return JSON.parse(readFile(filename));

Callers 10

updateChangelogFunction · 0.90
updateTableOfContentsFunction · 0.90
updatePackageJSONFunction · 0.85
generateEntryFunction · 0.85
writeFileSafeFunction · 0.85
writePrerenderFileFunction · 0.85
writeTestFilesFunction · 0.85
createProjectFunction · 0.85
createEditorFunction · 0.85
writeJsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…