MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / isHttpUrl

Function isHttpUrl

src/commands/create.ts:64–71  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

62}
63
64function isHttpUrl(value: string): boolean {
65 try {
66 const url = new URL(value);
67 return url.protocol === "http:" || url.protocol === "https:";
68 } catch {
69 return false;
70 }
71}
72
73async function readConfigSource(source: string): Promise<PackConfig> {
74 let raw = "";

Callers 1

readConfigSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected