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

Function mkdtempSync

lib/internal/vfs/setup.js:328–334  ·  view source on GitHub ↗
(prefix, options)

Source from the content-addressed store, hash-verified

326 });
327 },
328 mkdtempSync(prefix, options) {
329 const result = vfsOp(prefix, (vfs, n) => vfs.mkdtempSync(n));
330 if (result !== undefined && options?.encoding === 'buffer') {
331 return Buffer.from(result);
332 }
333 return result;
334 },
335 opendirSync: (path, options) => vfsOp(path, (vfs, n) => vfs.opendirSync(n, options)),
336 openAsBlob(path, options) {
337 const pathStr = toPathStr(path);

Callers 1

setupCoverageFunction · 0.50

Calls 3

vfsOpFunction · 0.85
mkdtempSyncMethod · 0.80
fromMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…