MCPcopy Create free account
hub / github.com/continuedev/continue / pathToUri

Function pathToUri

extensions/cli/src/auth/uriUtils.ts:8–11  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

6 */
7
8export function pathToUri(path: string): string {
9 const normalizedPath = normalize(path);
10 return pathToFileURL(normalizedPath).href;
11}
12
13export function slugToUri(slug: string): string {
14 return `slug://${slug}`;

Callers 1

uriUtils.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected