MCPcopy
hub / github.com/esm-dev/esm.sh / isAbsPathSpecifier

Function isAbsPathSpecifier

web/utils.go:31–33  ·  view source on GitHub ↗

isAbsPathSpecifier returns true if the specifier is an absolute path.

(specifier string)

Source from the content-addressed store, hash-verified

29
30// isAbsPathSpecifier returns true if the specifier is an absolute path.
31func isAbsPathSpecifier(specifier string) bool {
32 return strings.HasPrefix(specifier, "/") || strings.HasPrefix(specifier, "file://")
33}
34
35// encodeUrl converts a url.URL to a string without escaping the path.
36func encodeUrl(u *url.URL) string {

Callers 1

analyzeDependencyTreeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected