..:: Source code - 056global_properties_node.js ::..

/**
 * List all 'global' properties
 */
var property;

for (property in global) {
  if (global.hasOwnProperty(property)) {
    console.log("global." + property + " = " + global[property]);
  }
}
 

..:: NodeJS Console - 056global_properties_node.js ::..

$ node 056global_properties_node.js
global.global = [object global]
global.clearImmediate = function clearImmediate(immediate) {
  if (!immediate || immediate._destroyed)
    return;

  immediateInfo[kCount]--;
  immediate._destroyed = true;

  if (immediate[kRefed] && --immediateInfo[kRefCount] === 0) {
    // We need to use the binding as the receiver for fast API calls.
    binding.toggleImmediateRef(false);
  }
  immediate[kRefed] = null;

  if (destroyHooksExist() && immediate[async_id_symbol] !== undefined) {
    emitDestroy(immediate[async_id_symbol]);
  }

  immediate._onImmediate = null;

  immediateQueue.remove(immediate);
}
global.setImmediate = function setImmediate(callback, arg1, arg2, arg3) {
  validateFunction(callback, 'callback');

  let i, args;
  switch (arguments.length) {
    // fast cases
    case 1:
      break;
    case 2:
      args = [arg1];
      break;
    case 3:
      args = [arg1, arg2];
      break;
    default:
      args = [arg1, arg2, arg3];
      for (i = 4; i < arguments.length; i++) {
        // Extend array dynamically, makes .apply run much faster in v6.0.0
        args[i - 1] = arguments[i];
      }
      break;
  }

  return new Immediate(callback, args);
}
global.clearInterval = function clearInterval(timer) {
  // clearTimeout and clearInterval can be used to clear timers created from
  // both setTimeout and setInterval, as specified by HTML Living Standard:
  // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval
  clearTimeout(timer);
}
global.clearTimeout = function clearTimeout(timer) {
  if (timer && timer._onTimeout) {
    timer._onTimeout = null;
    unenroll(timer);
    return;
  }
  if (typeof timer === 'number' || typeof timer === 'string') {
    const timerInstance = knownTimersById[timer];
    if (timerInstance !== undefined) {
      timerInstance._onTimeout = null;
      unenroll(timerInstance);
    }
  }
}
global.setInterval = function setInterval(callback, repeat, arg1, arg2, arg3) {
  validateFunction(callback, 'callback');

  let i, args;
  switch (arguments.length) {
    // fast cases
    case 1:
    case 2:
      break;
    case 3:
      args = [arg1];
      break;
    case 4:
      args = [arg1, arg2];
      break;
    default:
      args = [arg1, arg2, arg3];
      for (i = 5; i < arguments.length; i++) {
        // Extend array dynamically, makes .apply run much faster in v6.0.0
        args[i - 2] = arguments[i];
      }
      break;
  }

  const timeout = new Timeout(callback, repeat, args, true, true);
  insert(timeout, timeout._idleTimeout);

  return timeout;
}
global.setTimeout = function setTimeout(callback, after, arg1, arg2, arg3) {
  validateFunction(callback, 'callback');

  let i, args;
  switch (arguments.length) {
    // fast cases
    case 1:
    case 2:
      break;
    case 3:
      args = [arg1];
      break;
    case 4:
      args = [arg1, arg2];
      break;
    default:
      args = [arg1, arg2, arg3];
      for (i = 5; i < arguments.length; i++) {
        // Extend array dynamically, makes .apply run much faster in v6.0.0
        args[i - 2] = arguments[i];
      }
      break;
  }

  const timeout = new Timeout(callback, after, args, false, true);
  insert(timeout, timeout._idleTimeout);

  return timeout;
}
global.queueMicrotask = function queueMicrotask(callback) {
  validateFunction(callback, 'callback');

  const asyncResource = new AsyncResource(
    'Microtask',
    defaultMicrotaskResourceOpts,
  );
  asyncResource.callback = callback;

  enqueueMicrotask(FunctionPrototypeBind(runMicrotask, asyncResource));
}
global.structuredClone = function structuredClone() { [native code] }
global.atob = function atob(input) {
  // The implementation here has not been performance optimized in any way and
  // should not be.
  // Refs: https://github.com/nodejs/node/pull/38433#issuecomment-828426932
  if (arguments.length === 0) {
    throw new ERR_MISSING_ARGS('input');
  }

  input = `${input}`;
  let nonAsciiWhitespaceCharCount = 0;
  let equalCharCount = 0;

  for (let n = 0; n < input.length; n++) {
    const index = ArrayPrototypeIndexOf(
      kForgivingBase64AllowedChars,
      StringPrototypeCharCodeAt(input, n));

    if (index > 4) {
      // The first 5 elements of `kForgivingBase64AllowedChars` are
      // ASCII whitespace char codes.
      nonAsciiWhitespaceCharCount++;

      if (index === kEqualSignIndex) {
        equalCharCount++;
      } else if (equalCharCount) {
        // The `=` char is only allowed at the end.
        throw lazyDOMException('Invalid character', 'InvalidCharacterError');
      }

      if (equalCharCount > 2) {
        // Only one more `=` is permitted after the first equal sign.
        throw lazyDOMException('Invalid character', 'InvalidCharacterError');
      }
    } else if (index === -1) {
      throw lazyDOMException('Invalid character', 'InvalidCharacterError');
    }
  }

  let reminder = nonAsciiWhitespaceCharCount % 4;

  // See #2, #3, #4 - https://infra.spec.whatwg.org/#forgiving-base64
  if (!reminder) {
    // Remove all trailing `=` characters and get the new reminder.
    reminder = (nonAsciiWhitespaceCharCount - equalCharCount) % 4;
  } else if (equalCharCount) {
    // `=` should not in the input if there's a reminder.
    throw lazyDOMException('Invalid character', 'InvalidCharacterError');
  }

  // See #3 - https://infra.spec.whatwg.org/#forgiving-base64
  if (reminder === 1) {
    throw lazyDOMException(
      'The string to be decoded is not correctly encoded.',
      'InvalidCharacterError');
  }

  return Buffer.from(input, 'base64').toString('latin1');
}
global.btoa = function btoa(input) {
  // The implementation here has not been performance optimized in any way and
  // should not be.
  // Refs: https://github.com/nodejs/node/pull/38433#issuecomment-828426932
  if (arguments.length === 0) {
    throw new ERR_MISSING_ARGS('input');
  }
  input = `${input}`;
  for (let n = 0; n < input.length; n++) {
    if (input[n].charCodeAt(0) > 0xff)
      throw lazyDOMException('Invalid character', 'InvalidCharacterError');
  }
  const buf = Buffer.from(input, 'latin1');
  return buf.toString('base64');
}
global.performance = [object Performance]
global.fetch = function fetch(input, init = undefined) {
      return lazyUndici().fetch(input, init);
    }
global.crypto = [object Crypto]
$ps -aux | grep node (list all node processes)
sasa        1208  0.3  0.4 1309856 70860 ?       Ssl   2025 1639:31 node /home/sasa/dex8/dex8-panel/server/index.js
sasa        1236  0.5  0.5 11822896 96028 ?      Ssl   2025 2588:27 node /home/sasa/mikosoft_hr/www-mikosoft-hr/server/index.js
sasa        1257  0.3  0.4 1307032 67480 ?       Ssl   2025 1659:36 node /home/sasa/mikosoft-info/www-mikosoft-info/server/index.js
sasa        1289  0.3  0.3 1302112 64020 ?       Ssl   2025 1634:10 node /home/sasa/dex8/dex8-kiosk/server/index.js
sasa        1363  4.2  3.3 12255444 552412 ?     Ssl   2025 21040:21 node /home/sasa/voovuu/voovuu-pub/server/index.js
sasa        1886  7.9  4.3 12371444 709408 ?     Ssl   2025 39025:17 node /home/sasa/mikosoft-info/crypto-mikosoft-info/server/index.
sasa     1214480  0.3  0.7 22311168 118748 ?     Ssl   2025 1446:13 node /home/sasa/dex8/dex8-worker/starter.js
sasa     1214483  0.3  0.3 1101824 59368 ?       Ssl   2025 1331:11 node /home/sasa/dex8/dex8-worker/starter.js
sasa     1214536  0.3  0.3 1100804 59040 ?       Ssl   2025 1329:23 node /home/sasa/dex8/dex8-worker/starter.js
sasa     1214544  0.3  0.3 1102056 59932 ?       Ssl   2025 1340:27 node /home/sasa/dex8/dex8-worker/starter.js
sasa     1214588  0.3  0.3 1102340 60292 ?       Ssl   2025 1333:43 node /home/sasa/dex8/dex8-worker/starter.js
sasa     1214617  0.3  0.3 1102208 61280 ?       Ssl   2025 1328:53 node /home/sasa/dex8/dex8-worker/starter.js
sasa     1214641  0.3  0.3 1167976 60684 ?       Ssl   2025 1320:26 node /home/sasa/dex8/dex8-worker/starter.js
sasa     1214671  0.3  0.3 1100384 58864 ?       Ssl   2025 1314:00 node /home/sasa/dex8/dex8-worker/starter.js
sasa     1216489  0.3  0.3 1101560 58892 ?       Ssl   2025 1329:39 node /home/sasa/dex8/dex8-worker/starter.js
sasa     1399960  0.8  0.7 11834988 126108 ?     Ssl  Apr20 2069:16 node /home/sasa/dex8/dex8-www/server/index.js
sasa     1631573  0.5  0.4 1303684 78352 ?       Ssl  May31 1034:32 node /home/sasa/.pm2/modules/pm2-logrotate/node_modules/pm2-logr
sasa     1824679  0.4  0.4 11799168 79340 ?      Ssl  Aug15 316:00 node /home/sasa/kriptus/kriptus-panel/server/index.js
sasa     2072475  0.7  0.6 1158332 108708 ?      Ssl  Sep24  83:53 node /home/sasa/voovuu/voovuu-api/starter.js
sasa     2075109 11.5  0.6 11709884 109820 ?     Ssl  Sep24 1220:33 node /home/sasa/dex8/dex8-api/starter.js
sasa     2075416  0.6  0.4 1332408 80716 ?       Ssl  Sep24  67:01 node /home/sasa/mikosoft-info/api-mikosoft-info/starter.js
sasa     2448036  1.2  1.2 11913500 211456 ?     Ssl  Aug21 756:38 node /home/sasa/miko/miko-hr/server/index.js
sasa     2663246  2.2  0.7 11851700 124860 ?     Ssl  Aug23 1291:32 node /home/sasa/kriptus/kriptus-api/starter.js
www-data 2971197  0.0  0.0   2608   532 ?        S    03:25   0:00 sh -c ps -aux | grep node
www-data 2971199  0.0  0.0   3304   648 ?        S    03:25   0:00 grep node
sasa     3168557  0.6  0.6 11831252 101552 ?     Ssl   2025 2930:48 node /home/sasa/mikosoft-info/dodo-mikosoft-info/server/index.js
sasa     3169051  0.5  0.4 11799488 77724 ?      Ssl   2025 2400:29 node /home/sasa/@mikosoft/dodo-examples/server/index.js
sasa     3358795  0.6  0.5 1267804 84868 ?       Ssl  Aug29 313:38 node /home/sasa/miko/miko-hr/api/starter.js
sasa     3809381  0.3  0.6 22299336 99440 ?      Ssl  Sep02 150:38 node /home/sasa/dex8/dex8-worker/starter.js