This repository has been archived on 2022-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
teemant-old/server/config.js

15 lines
279 B
JavaScript
Raw Normal View History

2016-09-23 21:38:09 +00:00
let fs = require('fs');
let toml = require('toml');
let filename = __dirname+'/../client.config.toml';
let config;
try {
config = toml.parse(fs.readFileSync(filename));
} catch (e) {
throw 'config.toml parse error: ' + e;
console.error(e.stack);
}
module.exports = config;