SILENT KILLERPanel

Current Path: > > lib > node_modules > npm > node_modules > readable-stream > lib > internal > streams >


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //lib/node_modules/npm/node_modules/readable-stream/lib/internal/streams/

NameTypeSizeLast ModifiedActions
async_iterator.js File 5957 bytes March 10 2021 14:36:39.
buffer_list.js File 6335 bytes March 10 2021 14:36:39.
destroy.js File 3117 bytes March 10 2021 14:36:39.
end-of-stream.js File 3102 bytes March 10 2021 14:36:39.
from-browser.js File 101 bytes March 10 2021 14:36:39.
from.js File 3137 bytes March 10 2021 14:36:39.
pipeline.js File 2428 bytes March 10 2021 14:36:39.
state.js File 749 bytes March 10 2021 14:36:39.
stream-browser.js File 49 bytes March 10 2021 14:36:39.
stream.js File 36 bytes March 10 2021 14:36:39.

Reading File: //lib/node_modules/npm/node_modules/readable-stream/lib/internal/streams//state.js

'use strict';

var ERR_INVALID_OPT_VALUE = require('../../../errors').codes.ERR_INVALID_OPT_VALUE;

function highWaterMarkFrom(options, isDuplex, duplexKey) {
  return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
}

function getHighWaterMark(state, options, duplexKey, isDuplex) {
  var hwm = highWaterMarkFrom(options, isDuplex, duplexKey);

  if (hwm != null) {
    if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {
      var name = isDuplex ? duplexKey : 'highWaterMark';
      throw new ERR_INVALID_OPT_VALUE(name, hwm);
    }

    return Math.floor(hwm);
  } // Default value


  return state.objectMode ? 16 : 16 * 1024;
}

module.exports = {
  getHighWaterMark: getHighWaterMark
};

SILENT KILLER Tool