MCPcopy
hub / github.com/tschaub/gh-pages / mkdtemp

Function mkdtemp

test/helper.js:28–37  ·  view source on GitHub ↗

* @return {Promise } A promise that resolves to the path.

()

Source from the content-addressed store, hash-verified

26 * @return {Promise<string>} A promise that resolves to the path.
27 */
28function mkdtemp() {
29 return new Promise((resolve, reject) => {
30 tmp.dir({unsafeCleanup: true}, (err, tmpPath) => {
31 if (err) {
32 return reject(err);
33 }
34 resolve(tmpPath);
35 });
36 });
37}
38
39/**
40 * Creates a git repo with the contents of a fixture.

Callers 3

setupRepoFunction · 0.85
setupRemoteFunction · 0.85
assertContentsMatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…