MCPcopy
hub / github.com/davepoon/buildwithclaude / writeFile

Function writeFile

packages/bwc-cli/src/utils/files.ts:30–33  ·  view source on GitHub ↗
(filePath: string, content: string)

Source from the content-addressed store, hash-verified

28}
29
30export async function writeFile(filePath: string, content: string): Promise<void> {
31 await fs.ensureDir(path.dirname(filePath))
32 await fs.writeFile(filePath, content, 'utf-8')
33}
34
35export async function readJSON<T>(filePath: string): Promise<T> {
36 const content = await readFile(filePath)

Callers 4

writeJSONFunction · 0.85
createInstallCommandFunction · 0.85
addSubagentFunction · 0.85
addCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected