🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-15 02:21:03 | PHP 8.1.34
📂
/ (Root)
/
opt
/
alt
/
alt-nodejs9
/
root
/
usr
/
lib
/
node_modules
/
npm
/
lib
/
utils
📍 /opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/lib/utils
🔄 Refresh
✏️
Editing: gunzip-maybe.js
Read Only
var duplex = require('mississippi').duplex var through = require('mississippi').through var zlib = require('zlib') function hasGzipHeader (c) { return c[0] === 0x1F && c[1] === 0x8B && c[2] === 0x08 } module.exports = gunzip function gunzip () { var stream = duplex() var peeker = through(function (chunk, enc, cb) { var newStream = hasGzipHeader(chunk) ? zlib.createGunzip() : through() stream.setReadable(newStream) stream.setWritable(newStream) stream.write(chunk) }) stream.setWritable(peeker) return stream }
💾 Save Changes
❌ Cancel