MCPcopy Index your code
hub / github.com/code-pushup/cli / readTextFile

Function readTextFile

packages/utils/src/lib/file-system.ts:6–9  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

4import { logger } from './logger.js';
5
6export async function readTextFile(filePath: string): Promise<string> {
7 const buffer = await readFile(filePath);
8 return buffer.toString();
9}
10
11export async function readJsonFile<T = unknown>(filePath: string): Promise<T> {
12 const text = await readTextFile(filePath);

Callers 9

parseLcovFileFunction · 0.90
runnerFunctionFunction · 0.90
init.e2e.test.tsFile · 0.90
readJsonFileFunction · 0.85
loadReportFunction · 0.85

Calls 2

readFileFunction · 0.85
toStringMethod · 0.80

Tested by

no test coverage detected