MCPcopy Create free account
hub / github.com/cloudflare/templates / writeJson

Function writeJson

cli/src/util.ts:174–176  ·  view source on GitHub ↗
(filePath: string, object: unknown)

Source from the content-addressed store, hash-verified

172}
173
174export function writeJson(filePath: string, object: unknown) {
175 fs.writeFileSync(filePath, JSON.stringify(object, undefined, 2) + "\n");
176}
177
178export async function actionWithSummary(
179 title: string,

Callers 4

util.test.tsFile · 0.90
lintWranglerTomlFunction · 0.90
lintWranglerJsonFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected