blob: bb45bba1c0ae282373cd2ad0f20568df1d035df6 [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001'use strict';
2const fs = require('fs');
3const os = require('os');
4
5const ID = '__RESOLVED_TMP_DIR__';
6
7if (!global[ID]) {
8 Object.defineProperty(global, ID, {
9 value: fs.realpathSync(os.tmpdir())
10 });
11}
12
13module.exports = global[ID];