diff --git a/src/util/fs.ts b/src/util/fs.ts index 5be7b99..99527eb 100644 --- a/src/util/fs.ts +++ b/src/util/fs.ts @@ -57,3 +57,7 @@ export async function withTempDir(callback: (tmp: TempState) => Promise< await fs.rm(dir, { force: true, recursive: true }) } } + +export async function readFile(path: string) { + return await fs.readFile(path, { encoding: 'utf8' }) +}