Initial commit

This commit is contained in:
pasketti
2026-04-05 16:14:49 -04:00
commit ebee3a5534
14059 changed files with 2588797 additions and 0 deletions

25
node_modules/prettyjson/lib/utils.js generated vendored Normal file
View File

@@ -0,0 +1,25 @@
'use strict';
/**
* Creates a string with the same length as `numSpaces` parameter
**/
exports.indent = function indent(numSpaces) {
return new Array(numSpaces+1).join(' ');
};
/**
* Gets the string length of the longer index in a hash
**/
exports.getMaxIndexLength = function(input) {
var maxWidth = 0;
Object.getOwnPropertyNames(input).forEach(function(key) {
// Skip undefined values.
if (input[key] === undefined) {
return;
}
maxWidth = Math.max(maxWidth, key.length);
});
return maxWidth;
};