MCPcopy
hub / github.com/serverless/serverless / readFile

Function readFile

packages/serverless/lib/utils/fs/read-file.js:4–8  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

2import parse from './parse.js'
3
4async function readFile(filePath) {
5 return fsp
6 .readFile(filePath, 'utf8')
7 .then((contents) => parse(filePath, contents))
8}
9
10export default readFile

Callers 4

readFileMethod · 0.50
hashFileFunction · 0.50
_loadLocalTemplateFunction · 0.50
_readPackageJsonMethod · 0.50

Calls 2

parseFunction · 0.85
readFileMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…