MCPcopy Index your code
hub / github.com/omkarcloud/botasaurus / writeJson

Function writeJson

js/botasaurus-js/src/utils.ts:48–50  ·  view source on GitHub ↗
(data: any, p: string, indent: number|null = 4)

Source from the content-addressed store, hash-verified

46}
47
48function writeJson(data: any, p: string, indent: number|null = 4): void {
49 fs.writeFileSync(p, JSON.stringify(data, null, indent as any), { encoding: "utf-8" });
50}
51
52function uniquifyStrings(strs: string[]): string[] {
53 const seen = new Set<string>();

Callers 3

writeJsonFunction · 0.90
putMethod · 0.90
putMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected