..:: 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         914  0.4  0.5 1306980 85376 ?       Ssl  Aug04 121:31 node /home/sasa/.pm2/modules/pm2-logrotate/node_modules/pm2-logr
sasa         935  0.6  0.7 11786816 129060 ?     Ssl  Aug04 181:36 node /home/sasa/dex8/dex8-api/starter.js
sasa         938  0.3  0.4 1304976 74308 ?       Ssl  Aug04  96:31 node /home/sasa/regoch/regoch-www/server
sasa         945  0.3  0.4 1299400 66472 ?       Ssl  Aug04  88:07 node /home/sasa/dex8/dex8-panel/server/index.js
sasa         947  0.6  0.6 11811440 99280 ?      Ssl  Aug04 190:40 node /home/sasa/dex8/dex8-www/server/index.js
sasa         966  0.4  0.5 11809232 97000 ?      Ssl  Aug04 131:28 node /home/sasa/mikosoft_hr/www-mikosoft-hr/server/index.js
sasa         980  0.6  0.5 1329944 82556 ?       Ssl  Aug04 168:35 node /home/sasa/mikosoft-info/api-mikosoft-info/starter.js
sasa         997  0.3  0.4 1300684 68676 ?       Ssl  Aug04  89:13 node /home/sasa/mikosoft-info/www-mikosoft-info/server/index.js
sasa        1021  0.3  0.3 1297656 65376 ?       Ssl  Aug04  87:53 node /home/sasa/dex8/dex8-kiosk/server/index.js
sasa        1065  0.5  0.5 11803028 92256 ?      Ssl  Aug04 142:24 node /home/sasa/mikosoft-info/dodo-mikosoft-info/server/index.js
sasa        1074  0.5  0.6 1147628 103456 ?      Ssl  Aug04 144:00 node /home/sasa/voovuu/voovuu-api/starter.js
sasa        1136  0.6  1.0 11882356 166348 ?     Ssl  Aug04 173:49 node /home/sasa/voovuu/voovuu-pub/server/index.js
sasa        1148  0.3  0.4 11794388 78280 ?      Ssl  Aug04  95:29 node /home/sasa/@mikosoft/dodo-examples/server/index.js
sasa        1197  0.3  0.3 1099116 63820 ?       Ssl  Aug04  90:47 node /home/sasa/dex8/dex8-worker/starter.js
sasa        1199  0.3  0.3 1099872 64344 ?       Ssl  Aug04  90:15 node /home/sasa/dex8/dex8-worker/starter.js
sasa        1308  0.3  0.3 1099616 64368 ?       Ssl  Aug04  90:39 node /home/sasa/dex8/dex8-worker/starter.js
sasa        1325  0.3  0.3 1099360 63924 ?       Ssl  Aug04  90:36 node /home/sasa/dex8/dex8-worker/starter.js
sasa        1393  0.6  0.7 22314068 130252 ?     Ssl  Aug04 184:43 node /home/sasa/dex8/dex8-worker/starter.js
sasa        1395  0.3  0.3 1099884 64012 ?       Ssl  Aug04  90:51 node /home/sasa/dex8/dex8-worker/starter.js
sasa        1489  0.3  0.3 1099360 64332 ?       Ssl  Aug04  90:57 node /home/sasa/dex8/dex8-worker/starter.js
sasa        1496  0.3  0.3 1100128 65068 ?       Ssl  Aug04  90:21 node /home/sasa/dex8/dex8-worker/starter.js
sasa        1607  0.3  0.3 1099104 63624 ?       Ssl  Aug04  90:35 node /home/sasa/dex8/dex8-worker/starter.js
sasa        1608  0.3  0.3 1099616 63876 ?       Ssl  Aug04  90:04 node /home/sasa/dex8/dex8-worker/starter.js
sasa        1686  0.5  0.6 11813248 111016 ?     Ssl  Aug04 144:35 node /home/sasa/mikosoft-info/crypto-mikosoft-info/server/index.
sasa     1371685  0.3  0.5 11799572 84976 ?      Ssl  Aug16  36:06 node /home/sasa/mikosoft-info/solar-wind-energy/server/index.js
sasa     1460918  0.3  0.3 1298600 63152 ?       Ssl  Aug17  32:07 node /home/sasa/sites-nodejs/oxygen-free-copper/server.js
www-data 2152723  0.0  0.0   2608   528 ?        S    21:22   0:00 sh -c ps -aux | grep node
www-data 2152725  0.0  0.0   3304   716 ?        S    21:22   0:00 grep node