MCPcopy Index your code
hub / github.com/angular/angular-cli / appendToFile

Function appendToFile

tests/e2e/utils/fs.ts:67–71  ·  view source on GitHub ↗
(filePath: string, text: string, options?: any)

Source from the content-addressed store, hash-verified

65}
66
67export function appendToFile(filePath: string, text: string, options?: any) {
68 return readFile(filePath).then((content: string) =>
69 writeFile(filePath, content.concat(text), options),
70 );
71}
72
73export function prependToFile(filePath: string, text: string, options?: any) {
74 return readFile(filePath).then((content: string) =>

Callers 11

setupI18nConfigFunction · 0.90
browsers.tsFile · 0.90
scripts-array.tsFile · 0.90
rebuild.tsFile · 0.90
library.tsFile · 0.90
ssr-error-stack.tsFile · 0.90

Calls 2

readFileFunction · 0.70
writeFileFunction · 0.70

Tested by

no test coverage detected