mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 15:35:55 +01:00
8 lines
219 B
TypeScript
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'));
|
|
}
|