MCPcopy Index your code
hub / github.com/nodejs/node / read

Function read

benchmark/fs/readfile-promises.js:57–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 }
56
57 function read() {
58 fs.promises.readFile(filename, encoding)
59 .then((res) => afterRead(undefined, res))
60 .catch((err) => afterRead(err));
61 }
62
63 function afterRead(er, data) {
64 if (er) {

Callers 2

afterReadFunction · 0.70
mainFunction · 0.70

Calls 3

afterReadFunction · 0.70
thenMethod · 0.45
readFileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…