mirror of
https://github.com/tomru/switchmon.git
synced 2026-03-03 06:27:23 +01:00
18 lines
352 B
JavaScript
18 lines
352 B
JavaScript
'use strict';
|
|
|
|
const configPath = require('xdg').basedir.configPath('switchmon/config.json');
|
|
|
|
const defaults = {
|
|
postCmd: undefined,
|
|
};
|
|
|
|
let config = Object.assign({}, defaults);
|
|
|
|
try {
|
|
config = Object.assign(config, require(configPath));
|
|
} catch(err) {
|
|
// No config found in "${configPath}". Using defaults...
|
|
}
|
|
|
|
module.exports = config;
|