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

add node modules to repo

This commit is contained in:
s2
2018-06-03 13:47:11 +02:00
parent e8c95255e8
commit d002126b72
4115 changed files with 440218 additions and 7519 deletions

30
node_modules/progress-stream/test/http.js generated vendored Normal file
View File

@@ -0,0 +1,30 @@
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');