GoScrobble/web/node_modules/temp-dir/index.js

14 lines
234 B
JavaScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
'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];