MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / writeJson

Function writeJson

packages/bumpy/src/utils/fs.ts:15–17  ·  view source on GitHub ↗
(filePath: string, data: unknown, indent = 2)

Source from the content-addressed store, hash-verified

13}
14
15export async function writeJson(filePath: string, data: unknown, indent = 2): Promise<void> {
16 await writeFile(filePath, JSON.stringify(data, null, indent) + '\n', 'utf-8');
17}
18
19/**
20 * Update specific top-level string fields in a JSON file without reformatting.

Callers 1

initCommandFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…