Files
claude-code-viewer/src/server/service/claude-code/computeClaudeProjectFilePath.ts
2025-10-17 17:16:08 +09:00

10 lines
267 B
TypeScript

import path from "node:path";
import { claudeProjectsDirPath } from "../paths";
export function computeClaudeProjectFilePath(projectPath: string): string {
return path.join(
claudeProjectsDirPath,
projectPath.replace(/\/$/, "").replace(/\//g, "-"),
);
}