MCPcopy Index your code
hub / github.com/serverless/serverless / readFile

Function readFile

packages/util/src/rc/index.js:31–34  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

29 * @returns A promise that resolves to the result of parsing the file contents.
30 */
31const readFile = async (filePath) => {
32 const contents = await fsp.readFile(filePath, 'utf8')
33 return contents || null
34}
35
36/**
37 * Writes a file with the given contents.

Callers 3

getRcLocalConfigFunction · 0.70
getRcGlobalConfigFunction · 0.70
e2e.test.jsFile · 0.50

Calls 1

readFileMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…