1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-04 05:10:05 +02:00

update some packages and remove node_modules from repo

This commit is contained in:
s2
2019-03-09 16:38:04 +01:00
parent 3dcadb39c2
commit d24a82e91e
94766 changed files with 290 additions and 858252 deletions

View File

@@ -1,30 +0,0 @@
var progress = require('../index');
var http = require('http');
var fs = require('fs');
var log = require('single-line-log').stdout;
var numeral = require('numeral');
var str = progress({
drain: true,
time: 100,
speed: 20
});
str.on('progress', 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)+'%');
});
var options = {
method: 'GET',
host: 'cachefly.cachefly.net',
path: '/10mb.test',
headers: {
'user-agent': 'testy test'
}
};
http.request(options, function(response) {
response.pipe(str);
}).end();
console.log('progress-stream using http module - downloading 10 MB file');

View File

@@ -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');