UNPKG

lorehub

Version:

Capture and surface the collective wisdom of your codebase

12 lines (9 loc) 307 B
import { mkdirSync } from 'fs'; import { join } from 'path'; import { homedir } from 'os'; export function getDbPath(): string { const configDir = join(homedir(), '.lorehub'); // Ensure config directory exists mkdirSync(configDir, { recursive: true }); return join(configDir, 'lorehub.db'); }