MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / readSourceFile

Function readSourceFile

packages/cli/test/fixtures/relation/index.js:296–298  ·  view source on GitHub ↗
(relativePath)

Source from the content-addressed store, hash-verified

294];
295
296function readSourceFile(relativePath) {
297 return fs.readFileSync(require.resolve(relativePath), {encoding: 'utf-8'});
298}

Callers 1

index.jsFile · 0.85

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected