trilium/services/config.js

9 lines
No EOL
228 B
JavaScript

"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;