feat: mise à jour du code
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const YAML = require("yaml");
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const YAML = require('yaml');
|
||||
|
||||
function loadYAML(file) {
|
||||
const filePath = path.join(__dirname, "..", file);
|
||||
const content = fs.readFileSync(filePath, "utf8");
|
||||
const filePath = path.join(__dirname, '..', file);
|
||||
const content = fs.readFileSync(filePath, 'utf8');
|
||||
return YAML.parse(content);
|
||||
}
|
||||
|
||||
const config = loadYAML("config.yml");
|
||||
const lang = loadYAML("lang.yml");
|
||||
const config = loadYAML('config.yml');
|
||||
const lang = loadYAML('lang.yml');
|
||||
|
||||
module.exports = { config, lang };
|
||||
module.exports = { config, lang };
|
||||
|
||||
Reference in New Issue
Block a user