import { readFile, access } from 'fs/promises' export const readJSON = async (path: string): Promise => JSON.parse(await readFile(path, 'utf-8')) export const fsExists = (path: string) => access(path).then( () => true, () => false )