Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.119
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html_old /
iNetty /
node_modules /
get-stream /
Delete
Unzip
Name
Size
Permission
Date
Action
buffer-stream.js
894
B
-rw-r--r--
2022-04-21 14:25
index.d.ts
3.58
KB
-rw-r--r--
2022-04-21 14:25
index.js
1.45
KB
-rw-r--r--
2022-04-21 14:25
license
1.09
KB
-rw-r--r--
2022-04-21 14:25
package.json
819
B
-rw-r--r--
2022-04-21 14:25
readme.md
4.1
KB
-rw-r--r--
2022-04-21 14:25
Save
Rename
'use strict'; const {PassThrough: PassThroughStream} = require('stream'); module.exports = options => { options = {...options}; const {array} = options; let {encoding} = options; const isBuffer = encoding === 'buffer'; let objectMode = false; if (array) { objectMode = !(encoding || isBuffer); } else { encoding = encoding || 'utf8'; } if (isBuffer) { encoding = null; } const stream = new PassThroughStream({objectMode}); if (encoding) { stream.setEncoding(encoding); } let length = 0; const chunks = []; stream.on('data', chunk => { chunks.push(chunk); if (objectMode) { length = chunks.length; } else { length += chunk.length; } }); stream.getBufferedValue = () => { if (array) { return chunks; } return isBuffer ? Buffer.concat(chunks, length) : chunks.join(''); }; stream.getBufferedLength = () => length; return stream; };