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

Function writeFile

test/parallel/test-fs-readfile-utf8-fast-path.js:12–16  ·  view source on GitHub ↗
(name, buf)

Source from the content-addressed store, hash-verified

10tmpdir.refresh();
11
12function writeFile(name, buf) {
13 const p = path.join(tmpdir.path, name);
14 fs.writeFileSync(p, buf);
15 return p;
16}
17
18function expectMatches(filePath, rawBuf) {
19 assert.strictEqual(

Callers 12

createFileFunction · 0.70
writeFilesMethod · 0.70
doReadAndCancelFunction · 0.70
doWriteAndCancelFunction · 0.70
createFileFunction · 0.70
createLargeFileFunction · 0.70
doTestFunction · 0.70
createFileFunction · 0.70

Calls 2

joinMethod · 0.45
writeFileSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…