SILENT KILLERPanel

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


Operation   : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Software     : Apache
Server IP    : 198.54.126.42 | Your IP: 216.73.216.38
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //usr/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: //usr/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