MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / readFile

Function readFile

js/botasaurus-js/src/utils.ts:44–46  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

42}
43
44function readFile(p: string): string {
45 return fs.readFileSync(p, { encoding: "utf-8" });
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" });

Callers 4

readCsvFunction · 0.90
readTempFileFunction · 0.90
output.jsFile · 0.50
index.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected