MCPcopy Index your code
hub / github.com/triggerdotdev/jsonhero-web / isUrl

Function isUrl

app/jsonDoc.server.ts:148–155  ·  view source on GitHub ↗
(possibleUrl: string)

Source from the content-addressed store, hash-verified

146}
147
148function isUrl(possibleUrl: string): boolean {
149 try {
150 new URL(possibleUrl);
151 return true;
152 } catch {
153 return false;
154 }
155}
156
157function isJSON(possibleJson: string): boolean {
158 try {

Callers 1

createFromUrlOrRawJsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected