Submit
Path:
~
/
/
usr
/
local
/
lib
/
node_modules
/
npm
/
node_modules
/
pacote
/
lib
/
util
/
File Content:
gunzip-maybe.js
'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 }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
cache-key.js
129 bytes
0644
git.js
5860 bytes
0644
gunzip-maybe.js
572 bytes
0644
opt-check.js
1858 bytes
0644
pack-dir.js
1044 bytes
0644
silentlog.js
186 bytes
0644
N4ST4R_ID | Naxtarrr