MCPcopy Index your code
hub / github.com/bytebase/bytebase / saveJsonFile

Function saveJsonFile

frontend/i18n.ts:135–142  ·  view source on GitHub ↗
(filePath: string, data: any)

Source from the content-addressed store, hash-verified

133}
134
135async function saveJsonFile(filePath: string, data: any): Promise<void> {
136 try {
137 await fs.writeFile(filePath, JSON.stringify(data, null, 2), "utf8");
138 console.log(`Updated ${filePath}`);
139 } catch (error) {
140 console.error(`Error writing file ${filePath}:`, error);
141 }
142}
143
144async function addMissingKeysFromSource(
145 source: JsonObject,

Callers 1

updateLocalizationFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected