summaryrefslogtreecommitdiff
path: root/node_modules/progress-stream/test/request.js
diff options
context:
space:
mode:
authorLinuxWizard42 <computerwizard@linuxmail.org>2022-10-12 23:08:57 +0300
committerLinuxWizard42 <computerwizard@linuxmail.org>2022-10-12 23:08:57 +0300
commit726b81b19251674e149ccfbb1abacbd837fc6db0 (patch)
treefbdbb227dc01357eb76e8222d76185bc124c5ca6 /node_modules/progress-stream/test/request.js
parent34f0890e175698940d49238097579f44e4d78c89 (diff)
downloadFlashRunner-726b81b19251674e149ccfbb1abacbd837fc6db0.tar.gz
FlashRunner-726b81b19251674e149ccfbb1abacbd837fc6db0.tar.zst
Removed files that should not have been included in git
Diffstat (limited to 'node_modules/progress-stream/test/request.js')
-rw-r--r--node_modules/progress-stream/test/request.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/node_modules/progress-stream/test/request.js b/node_modules/progress-stream/test/request.js
deleted file mode 100644
index c5d676b..0000000
--- a/node_modules/progress-stream/test/request.js
+++ /dev/null
@@ -1,20 +0,0 @@
-var progress = require('../index');
-var req = require('request');
-var fs = require('fs');
-var log = require('single-line-log').stdout;
-var numeral = require('numeral');
-
-var str = progress({
- drain: true,
- time: 100
-}, function(progress) {
- log('Running: '+numeral(progress.runtime).format('00:00:00')+' ('+numeral(progress.transferred).format('0 b')+')\n'+
- 'Left: '+numeral(progress.eta).format('00:00:00')+' ('+numeral(progress.remaining).format('0 b')+')\n'+
- numeral(progress.speed).format('0.00b')+'/s '+Math.round(progress.percentage)+'%');
-});
-
-req('http://cachefly.cachefly.net/10mb.test', {
- headers: { 'user-agent': 'test' }
-}).pipe(str);
-
-console.log('progress-stream using request module - downloading 10 MB file');