export const readJsonFile = async (filePath: string): Promise => { const decoder = new TextDecoder("utf-8"); const data = await Deno.readFile(filePath); return JSON.parse(decoder.decode(data)); } export const readJsonFileSync = (filePath: string): T => { const decoder = new TextDecoder("utf-8"); const data = Deno.readFileSync(filePath); return JSON.parse(decoder.decode(data)); }