UNPKG

@bytebase/dbhub

Version:

Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse, SQLite

11 lines (9 loc) • 229 B
// src/utils/home-dir.ts import os from "os"; import path from "path"; function expandHomeDir(filePath) { return filePath.startsWith("~/") ? path.join(os.homedir(), filePath.slice(2)) : filePath; } export { expandHomeDir };