mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 20:51:25 +03:00
Перенес файлы в общую папку
This commit is contained in:
parent
b9a45b69b4
commit
7c835e145a
14 changed files with 7 additions and 9 deletions
11
shared/config/src/main.js
Normal file
11
shared/config/src/main.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
const fs = require('fs');
|
||||
const yaml = require('yaml');
|
||||
|
||||
const config = () => {
|
||||
if (!fs.existsSync('../config.yaml')) return;
|
||||
|
||||
return yaml.parse(fs.readFileSync('../config.yaml', 'utf-8'));
|
||||
}
|
||||
|
||||
|
||||
module.exports = config;
|
Loading…
Add table
Reference in a new issue