diff options
Diffstat (limited to 'src/core/AutoreportBase.ts')
-rw-r--r-- | src/core/AutoreportBase.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/AutoreportBase.ts b/src/core/AutoreportBase.ts new file mode 100644 index 0000000..1129d35 --- /dev/null +++ b/src/core/AutoreportBase.ts @@ -0,0 +1,10 @@ +import YAML from "yaml"; +import { readFileSync } from "node:fs"; + +export default class AutoreportBase { + public static getRoot() { + return __dirname + "/../../"; + } + + public static config = YAML.parse(readFileSync(AutoreportBase.getRoot() + "/config.yml").toString()); +}
\ No newline at end of file |