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

Function createTmpFile

test/sequential/test-watch-mode.mjs:31–35  ·  view source on GitHub ↗
(content = 'console.log("running");', ext = '.js', basename = tmpdir.path)

Source from the content-addressed store, hash-verified

29
30let tmpFiles = 0;
31function createTmpFile(content = 'console.log("running");', ext = '.js', basename = tmpdir.path) {
32 const file = path.join(basename, `${tmpFiles++}${ext}`);
33 writeFileSync(file, content);
34 return file;
35}
36
37function runInBackground({ args = [], options = {}, completed = 'Completed running', shouldFail = false }) {
38 let future = Promise.withResolvers();

Callers 1

Calls 2

writeFileSyncFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…