trilium/services/config.js

9 lines
228 B
JavaScript
Raw Normal View History

2017-10-22 09:10:33 +08:00
"use strict";
const ini = require('ini');
const fs = require('fs');
const dataDir = require('./data_dir');
const config = ini.parse(fs.readFileSync(dataDir.TRILIUM_DATA_DIR + '/config.ini', 'utf-8'));
module.exports = config;