MCPcopy Index your code
hub / github.com/esm-dev/esm.sh / isHttpSpecifier

Function isHttpSpecifier

server/utils.go:57–59  ·  view source on GitHub ↗

isHttpSpecifier returns true if the specifier is a remote URL.

(specifier string)

Source from the content-addressed store, hash-verified

55
56// isHttpSpecifier returns true if the specifier is a remote URL.
57func isHttpSpecifier(specifier string) bool {
58 return strings.HasPrefix(specifier, "https://") || strings.HasPrefix(specifier, "http://")
59}
60
61// isRelPathSpecifier returns true if the specifier is a local path.
62func isRelPathSpecifier(specifier string) bool {

Callers 4

transformFunction · 0.85
buildModuleMethod · 0.85
normalizeConfigFunction · 0.85
resolveExternalModuleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected