mirror of
https://github.com/ershisan99/go-npm.git
synced 2025-12-18 12:33:26 +00:00
ADD unzip support
This commit is contained in:
@@ -14,9 +14,6 @@ function untar({ opts, req, onSuccess, onError }) {
|
||||
|
||||
ungz.on('error', onError);
|
||||
untar.on('error', onError);
|
||||
|
||||
// First we will Un-GZip, then we will untar. So once untar is completed,
|
||||
// binary is downloaded into `binPath`. Verify the binary and call it good
|
||||
untar.on('end', onSuccess);
|
||||
|
||||
req.pipe(ungz).pipe(untar);
|
||||
|
||||
Reference in New Issue
Block a user