created site just for chat

This commit is contained in:
edbernar
2024-07-30 20:19:29 +02:00
parent 57c261c689
commit 54fb27fe16
1288 changed files with 421 additions and 4240 deletions

9
site/game/node_modules/stats/lib/formats/index.js generated vendored Normal file
View File

@ -0,0 +1,9 @@
/*!
* stats - formats
* Copyright(c) 2011 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
exports.json = require('./json');
exports.text = require('./text');

17
site/game/node_modules/stats/lib/formats/json.js generated vendored Normal file
View File

@ -0,0 +1,17 @@
/*!
* stats - formats - json
* Copyright(c) 2011 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
/**
* Output `stats` as JSON.
*
* @param {Object} stats
* @api private
*/
module.exports = function(stats){
process.stdout.write(JSON.stringify(stats));
};

39
site/game/node_modules/stats/lib/formats/text.js generated vendored Normal file
View File

@ -0,0 +1,39 @@
/*!
* stats - formats - text
* Copyright(c) 2011 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
/**
* Output `stats` as plain-text.
*
* @param {Object} stats
* @api private
*/
exports = module.exports = function(files){
Object.keys(files).forEach(function(file){
var stats = files[file];
console.log('\n \033[90m%s:\033[0m', file);
Object.keys(stats).forEach(function(name){
var val = stats[name];
if (exports[name]) val = exports[name](val);
console.log(' \033[90m%s: \033[36m%s\033[0m', name, val);
});
});
console.log();
};
/**
* Format bytes.
*/
exports.bytes =
exports.stringBytes = function(n){
var kb = 1024
, mb = kb * 1024;
if (n < kb) return n + ' bytes';
if (n < mb) return (n / kb).toFixed(2) + ' kb';
return (n / mb).toFixed(2) + ' mb';
};