SILENT KILLERPanel

Current Path: > > lib > node_modules > npm > node_modules > stream-shift >


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/stream-shift/

NameTypeSizeLast ModifiedActions
.npmignore File 13 bytes March 10 2021 14:36:37.
.travis.yml File 65 bytes March 10 2021 14:36:37.
LICENSE File 1079 bytes March 10 2021 14:36:37.
README.md File 480 bytes March 10 2021 14:36:37.
index.js File 453 bytes March 10 2021 14:36:37.
package.json File 1477 bytes March 10 2021 14:36:37.
test.js File 1146 bytes March 10 2021 14:36:37.

Reading File: //lib/node_modules/npm/node_modules/stream-shift//index.js

module.exports = shift

function shift (stream) {
  var rs = stream._readableState
  if (!rs) return null
  return rs.objectMode ? stream.read() : stream.read(getStateLength(rs))
}

function getStateLength (state) {
  if (state.buffer.length) {
    // Since node 6.3.0 state.buffer is a BufferList not an array
    if (state.buffer.head) {
      return state.buffer.head.data.length
    }

    return state.buffer[0].length
  }

  return state.length
}

SILENT KILLER Tool