Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
afterRead
Function · 0.70
main
Function · 0.70
Calls
3
afterRead
Function · 0.70
then
Method · 0.45
readFile
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…