MCPcopy
hub / github.com/Binaryify/OneDark-Pro / writeFile

Function writeFile

scripts/generate-theme.ts:10–12  ·  view source on GitHub ↗
(path: string, data: unknown)

Source from the content-addressed store, hash-verified

8import { promises as fs } from 'fs'
9
10export function writeFile(path: string, data: unknown): Promise<void> {
11 return fs.writeFile(path, JSON.stringify(data, null, 2))
12}
13
14async function main() {
15 writeFile(

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected