download-github-repo
Advanced tools
Comparing version 0.1.0 to 0.1.1
0.1.0 - February 11, 2013 | ||
0.1.1 - March 31, 2014 | ||
---------------------- | ||
* switch to `download` dep | ||
0.1.0 - February 11, 2014 | ||
------------------------- | ||
* add option for branch or tag | ||
0.0.1 - January 26, 2013 | ||
0.0.1 - January 26, 2014 | ||
------------------------ | ||
:sparkles: |
16
index.js
@@ -5,3 +5,3 @@ | ||
var tar = require('tar'); | ||
var wget = require('wget'); | ||
var wget = require('download'); | ||
var zlib = require('zlib'); | ||
@@ -25,3 +25,3 @@ | ||
var url = github(normalize(repo)); | ||
var dl = wget.download(url, dest + '.tar.gz'); | ||
var dl = wget(url, dest, { extract: true, strip: 1 }); | ||
@@ -32,10 +32,4 @@ dl.on('error', function(err){ | ||
dl.on('end', function(file){ | ||
fs.createReadStream(file) | ||
.pipe(zlib.createGunzip()) | ||
.pipe(tar.Extract({ path: dest, strip: 1 })) | ||
.on('error', function(err){ fn(err); }) | ||
.on('end', function(){ | ||
rm(file, fn); | ||
}); | ||
dl.on('close', function(){ | ||
fn(); | ||
}); | ||
@@ -82,2 +76,2 @@ } | ||
}; | ||
} | ||
} |
@@ -14,7 +14,7 @@ { | ||
], | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"license": "MIT", | ||
"dependencies": { | ||
"download": "^0.1.11", | ||
"rimraf": "~2.2.6", | ||
"wget": "0.0.1", | ||
"tar": "~0.1.19" | ||
@@ -21,0 +21,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
3745
86
+ Addeddownload@^0.1.11
+ Addedabbrev@1.1.1(transitive)
+ Addedadm-zip@0.4.16(transitive)
+ Addedajv@6.12.6(transitive)
+ Addedasn1@0.2.6(transitive)
+ Addedassert-plus@1.0.0(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaws-sign2@0.7.0(transitive)
+ Addedaws4@1.13.2(transitive)
+ Addedbcrypt-pbkdf@1.0.2(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedcore-util-is@1.0.21.0.3(transitive)
+ Addeddashdash@1.14.1(transitive)
+ Addeddecompress@0.2.5(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addeddownload@0.1.19(transitive)
+ Addedduplexer@0.1.2(transitive)
+ Addedeach-async@0.1.3(transitive)
+ Addedecc-jsbn@0.1.2(transitive)
+ Addedext-list@0.2.0(transitive)
+ Addedext-name@1.0.1(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextsprintf@1.3.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedforever-agent@0.6.1(transitive)
+ Addedform-data@2.3.3(transitive)
+ Addedget-stdin@0.1.0(transitive)
+ Addedget-urls@0.1.2(transitive)
+ Addedgetpass@0.1.7(transitive)
+ Addedgot@0.2.0(transitive)
+ Addedhar-schema@2.0.0(transitive)
+ Addedhar-validator@5.1.5(transitive)
+ Addedhttp-signature@1.2.0(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedisarray@0.0.1(transitive)
+ Addedisstream@0.1.2(transitive)
+ Addedjsbn@0.1.1(transitive)
+ Addedjson-schema@0.4.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
+ Addedjsprim@1.4.2(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedmkdirp@0.3.5(transitive)
+ Addednopt@2.2.1(transitive)
+ Addedoauth-sign@0.9.0(transitive)
+ Addedobject-assign@0.3.1(transitive)
+ Addedobject-keys@0.4.0(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedpsl@1.10.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedqs@6.5.3(transitive)
+ Addedreadable-stream@1.0.34(transitive)
+ Addedrequest@2.88.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsshpk@1.18.0(transitive)
+ Addedstream-combiner@0.0.4(transitive)
+ Addedstring_decoder@0.10.31(transitive)
+ Addedtempfile@0.1.3(transitive)
+ Addedthrough2@0.4.2(transitive)
+ Addedtough-cookie@2.5.0(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addedtweetnacl@0.14.5(transitive)
+ Addedunderscore.string@2.3.3(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addeduuid@1.4.23.4.0(transitive)
+ Addedverror@1.10.0(transitive)
+ Addedxtend@2.1.2(transitive)
- Removedwget@0.0.1
- Removedtunnel@0.0.2(transitive)
- Removedwget@0.0.1(transitive)