| Server IP : 157.230.181.24 / Your IP : 216.73.217.11 Web Server : Apache/2.4.58 (Ubuntu) System : Linux conductive 6.8.0-117-generic #117-Ubuntu SMP PREEMPT_DYNAMIC Tue May 5 19:26:24 UTC 2026 x86_64 User : ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/vhosts/convo/node_modules/os-shim/lib/ |
Upload File : |
var os = require('os')
var osShim
'use strict';
// clone the 'os' module object to avoid mutations and unexpected behavior
module.exports = osShim = clone(os)
//
// apply the missing API
//
if (!os.tmpdir) {
osShim.tmpdir = tmpdir
}
if (!os.platform) {
osShim.platform = platform
}
if (!os.arch) {
osShim.arch = arch
}
if (!os.endianness) {
osShim.endianness = endianness
}
if (!os.EOL) {
Object.defineProperty(osShim, 'EOL', {
get: function () {
return process.platform === 'win32' ? '\n\r' : '\n'
}
})
}
function tmpdir() {
var isWindows = process.platform === 'win32'
var env = process.env
if (isWindows) {
return env.TEMP ||
env.TMP ||
(env.SystemRoot || env.windir) + '\\temp';
} else {
return env.TMPDIR ||
env.TMP ||
env.TEMP ||
'/tmp';
}
}
function platform() {
return process.platform
}
function arch() {
return process.arch
}
function endianness() {
var isEndianness = ((new Uint32Array((new Uint8Array([1,2,3,4])).buffer))[0] === 0x04030201)
return isEndianness ? 'LE' : 'BE'
}
function clone(object) {
var prop, cloneObj = {}
for (prop in object) {
if (object.hasOwnProperty(prop)) {
cloneObj[prop] = object[prop]
}
}
return cloneObj
}