first commit
This commit is contained in:
7
src/external-jwt/require-yaml.ts
Normal file
7
src/external-jwt/require-yaml.ts
Normal 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>;
|
||||
}
|
||||
Reference in New Issue
Block a user