📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 17:25:51
📂
/ (Root)
/
opt
/
alt
/
alt-nodejs9
/
root
/
usr
/
lib
/
node_modules
/
npm
/
node_modules.bundled
/
pacote
/
lib
/
util
📍 /opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules.bundled/pacote/lib/util
🔄 Refresh
✏️
Editing: gunzip-maybe.js
Read Only
'use strict' const duplex = require('mississippi').duplex const through = require('mississippi').through const zlib = require('zlib') function hasGzipHeader (c) { return c[0] === 0x1F && c[1] === 0x8B && c[2] === 0x08 } module.exports = gunzip function gunzip () { const stream = duplex() const peeker = through((chunk, enc, cb) => { const newStream = hasGzipHeader(chunk) ? zlib.createGunzip() : through() stream.setReadable(newStream) stream.setWritable(newStream) stream.write(chunk) }) stream.setWritable(peeker) return stream }
💾 Save Changes
❌ Cancel