core/loaders/report.loader.ts

core/loaders/report.loader.ts is a file in Project Scripts. 4 lines of code and 1 definition.

import { existsSync, readFileSync } from "node:fs";

export const reportAt = function reportAt(path: string): unknown {
    return existsSync(path) ? JSON.parse(readFileSync(path, "utf8")) : null;
};