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

Function readFile

tests/e2e/utils/fs.ts:4–6  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

2import { dirname, join } from 'node:path';
3
4export function readFile(fileName: string): Promise<string> {
5 return fs.readFile(fileName, 'utf-8');
6}
7
8export function writeFile(fileName: string, content: string, options?: any): Promise<void> {
9 return fs.writeFile(fileName, content, options);

Calls 1

readFileMethod · 0.65

Tested by

no test coverage detected