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

Function readFile

packages/angular/cli/src/commands/mcp/host.ts:347–351  ·  view source on GitHub ↗
(path: string, encoding: BufferEncoding)

Source from the content-addressed store, hash-verified

345 return baseHost.existsSync(path);
346 },
347 readFile(path: string, encoding: BufferEncoding) {
348 checkPath(path);
349
350 return baseHost.readFile(path, encoding);
351 },
352 glob(pattern: string, options: { cwd: string }) {
353 if (pattern.includes('..')) {
354 throw new Error(

Callers 6

findAngularCoreVersionFunction · 0.50
getBundledBestPracticesFunction · 0.50
ai-tutor.tsFile · 0.50

Calls 2

checkPathFunction · 0.85
readFileMethod · 0.65

Tested by

no test coverage detected