mirror of
https://github.com/ershisan99/go-npm.git
synced 2025-12-17 12:33:27 +00:00
ADD unzip support
This commit is contained in:
@@ -10,6 +10,8 @@ function getStrategy({ url }) {
|
||||
|
||||
if (url.endsWith('.tar.gz')) {
|
||||
return require('../assets/untar');
|
||||
} else if (url.endsWith('.zip')) {
|
||||
return require('../assets/unzip');
|
||||
} else {
|
||||
return require('../assets/move');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user