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

Method ReadFile

server/debug.go:47–53  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

45type MockEmbedFS struct{}
46
47func (fs MockEmbedFS) ReadFile(name string) ([]byte, error) {
48 cwd, err := os.Getwd()
49 if err != nil {
50 return nil, err
51 }
52 return os.ReadFile(path.Join(cwd, "server", name))
53}

Callers 12

buildFunction · 0.80
esmRouterFunction · 0.80
rewriteJSMethod · 0.80
loadNodeRuntimeFunction · 0.80
buildModuleMethod · 0.80
validateJSFileFunction · 0.80
installPackageContextMethod · 0.80
isDeprecatedMethod · 0.80
ServeFrameworkCSSMethod · 0.80
ServeInternalJSMethod · 0.80
analyzeDependencyTreeMethod · 0.80
StartMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected