feat: full names and better default names

This commit is contained in:
TrèsAbhi committed 2024-01-21 16:23:44 -06:00
1 parent f368769068
commit 638c2c73da
3 files changed
+21 -9

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import { readFile } from 'fs/promises';
import { parse } from 'yaml';
export async function readYAML<Type>(file: string) {
const yaml = (await readFile(file)).toString();
return parse(yaml) as Type;
}