MCPcopy Create free account
hub / github.com/EndBug/version-check / isURL

Function isURL

src/main.ts:142–149  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

140}
141
142function isURL(str: string) {
143 try {
144 new URL(str)
145 return true
146 } catch {
147 return false
148 }
149}
150
151function isRawGithubUrl(str: string) {
152 const url = new URL(str)

Callers 2

mainFunction · 0.70
readJsonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected