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

Function write

benchmark/fs/writefile-promises.js:70–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 }
69
70 function write() {
71 fs.promises
72 .writeFile(`${filename}-${filesWritten++}`, chunk, encoding)
73 .then(() => afterWrite())
74 .catch((err) => afterWrite(err));
75 }
76
77 function afterWrite(er) {
78 if (er) {

Callers 2

mainFunction · 0.70
afterWriteFunction · 0.70

Calls 3

afterWriteFunction · 0.70
thenMethod · 0.45
writeFileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…