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