bigdownloader
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "bigdownloader", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Download big files without worries. Included auto-resume", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# node-bigdownloader | ||
Download big files, with auto resume. This module assumes you know the hash and size beforehand. | ||
Download big files, with auto resume. This module assumes you know the hash | ||
@@ -15,3 +15,3 @@ Example: | ||
hash : 'be8544f91c22e859e6b330e6875b5f87ae41b33c', | ||
size : 144858835, | ||
size : 144858835, // if not given, extract size from headers | ||
debug : true | ||
@@ -24,5 +24,10 @@ }) | ||
}) | ||
.on('error', function(){ | ||
console.log('onError'); | ||
.on('error', function(err){ | ||
console.log('onError', err); | ||
}) | ||
.on('progress', function(progress){ | ||
console.log(progress.total); | ||
console.log(progress.done); | ||
console.log(progress.percent); | ||
}) | ||
.on('finish', function(){ | ||
@@ -29,0 +34,0 @@ console.log('onFinish'); |
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
4694
36