MCPcopy
hub / github.com/angular/angular / writeFile

Function writeFile

packages/benchpress/src/common_options.ts:46–56  ·  view source on GitHub ↗
(filename: string, content: string)

Source from the content-addressed store, hash-verified

44}
45
46function writeFile(filename: string, content: string): Promise<any> {
47 return new Promise<void>(function (resolve, reject) {
48 fs.writeFile(filename, content, (error) => {
49 if (error) {
50 reject(error);
51 } else {
52 resolve();
53 }
54 });
55 });
56}

Callers 3

fs.spec.tsFile · 0.50
mainFunction · 0.50
ivy_spec.tsFile · 0.50

Calls 3

rejectFunction · 0.85
writeFileMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…