import { readFileSync } from "node:fs" export const getFileContentInText = (filePath: string): string => { return readFileSync(filePath, "utf8") } export const getFileContentInJson = (filePath: string): T => { const content = getFileContentInText(filePath) return JSON.parse(content) as T }