Files
Homarr/src/tools/config/readConfig.ts
Meierschlumpf c2571190f6 Add calendar tile
2022-12-11 14:11:25 +01:00

8 lines
219 B
TypeScript

import fs from 'fs';
import { generateConfigPath } from './generateConfigPath';
export function readConfig(name: string) {
const path = generateConfigPath(name);
return JSON.parse(fs.readFileSync(path, 'utf8'));
}