initial upload
This commit is contained in:
parent
4c2141d89d
commit
2a9bd4e81b
33 changed files with 1238 additions and 0 deletions
15
lib/config.mjs
Normal file
15
lib/config.mjs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
|
||||
import {
|
||||
parse as parseYaml
|
||||
} from 'yaml';
|
||||
|
||||
import {
|
||||
readFileSync
|
||||
} from "node:fs";
|
||||
|
||||
|
||||
export async function getConfig() {
|
||||
return parseYaml(
|
||||
readFileSync('config.yaml', 'utf-8')
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue