first commit

This commit is contained in:
Krise
2023-07-31 02:55:15 +02:00
commit 8d53b15367
11 changed files with 5987 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
import fse from 'fs-extra';
import yaml from 'js-yaml';
export function requireYAML(filepath: string): Record<string, any> {
const yamlRaw = fse.readFileSync(filepath, 'utf8');
return yaml.load(yamlRaw) as Record<string, any>;
}