MCPcopy Create free account
hub / github.com/cortexkit/magic-context / projectPathToPiDirSlug

Function projectPathToPiDirSlug

packages/cli/src/commands/migrate.ts:191–193  ·  view source on GitHub ↗
(projectPath: string)

Source from the content-addressed store, hash-verified

189}
190
191export function projectPathToPiDirSlug(projectPath: string): string {
192 return `--${projectPath.replace(/^\/+|\/+$/g, "").replaceAll("/", "-")}--`;
193}
194
195export function formatPiFilenameTimestamp(date: Date): string {
196 return date.toISOString().replaceAll(":", "-").replace(".", "-");

Callers 2

migrate.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected