Перенес файлы в общую папку

This commit is contained in:
Данил 2024-08-14 17:14:38 +03:00
parent b9a45b69b4
commit 7c835e145a
14 changed files with 7 additions and 9 deletions

View file

@ -1,13 +0,0 @@
const fs = require('fs');
const yaml = require('yaml');
const config = () => {
try {
fs.readFileSync('../config.yaml', 'utf-8');
} catch { return }
return yaml.parse(fs.readFileSync('../config.yaml', 'utf-8'));
}
module.exports = config;