mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
14 lines
234 B
JavaScript
14 lines
234 B
JavaScript
|
'use strict';
|
||
|
const fs = require('fs');
|
||
|
const os = require('os');
|
||
|
|
||
|
const ID = '__RESOLVED_TMP_DIR__';
|
||
|
|
||
|
if (!global[ID]) {
|
||
|
Object.defineProperty(global, ID, {
|
||
|
value: fs.realpathSync(os.tmpdir())
|
||
|
});
|
||
|
}
|
||
|
|
||
|
module.exports = global[ID];
|