Create a temporary directory.
$ npm install --save tempdir
const tempdir = require('tempdir');
await tempdir();
//=> /tmp/x/y/z
tempdir.sync();
//=> /tmp/x/y/w
Returns a Promise
, which resolves to a directory path.
Synchronous version of tempdir()
.
MIT © Vadim Demedes