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

Function isRelPathSpecifier

web/utils.go:26–28  ·  view source on GitHub ↗

isRelPathSpecifier returns true if the specifier is a local path.

(specifier string)

Source from the content-addressed store, hash-verified

24
25// isRelPathSpecifier returns true if the specifier is a local path.
26func isRelPathSpecifier(specifier string) bool {
27 return strings.HasPrefix(specifier, "./") || strings.HasPrefix(specifier, "../")
28}
29
30// isAbsPathSpecifier returns true if the specifier is an absolute path.
31func isAbsPathSpecifier(specifier string) bool {

Callers 1

analyzeDependencyTreeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected