mirror of
https://github.com/Redume/Kekkai.git
synced 2025-03-12 19:44:39 +03:00
10 lines
261 B
JavaScript
10 lines
261 B
JavaScript
const fs = require('fs');
|
|
const hjson = require('hjson');
|
|
|
|
const config = () => {
|
|
if (!fs.existsSync('../config.hjson')) throw new Error('Config not found');
|
|
|
|
return hjson.parse(fs.readFileSync('../config.hjson', 'utf-8'));
|
|
};
|
|
|
|
module.exports = config;
|