AnonSec Shell
Server IP : 162.213.251.212  /  Your IP : 18.225.55.104   [ Reverse IP ]
Web Server : LiteSpeed
System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : allssztx ( 535)
PHP Version : 8.1.31
Disable Function : NONE
Domains : 1 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/thread-self/root/home/allssztx/needapair.com/node_modules/pizzip/es6/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /proc/thread-self/root/home/allssztx/needapair.com/node_modules/pizzip/es6/index.js
"use strict";

const base64 = require("./base64.js");

/**
Usage:
   zip = new PizZip();
   zip.file("hello.txt", "Hello, World!").file("tempfile", "nothing");
   zip.folder("images").file("smile.gif", base64Data, {base64: true});
   zip.file("Xmas.txt", "Ho ho ho !", {date : new Date("December 25, 2007 00:00:01")});
   zip.remove("tempfile");

   base64zip = zip.generate();

**/

/**
 * Representation a of zip file in js
 * @constructor
 * @param {String=|ArrayBuffer=|Uint8Array=} data the data to load, if any (optional).
 * @param {Object=} options the options for creating this objects (optional).
 */
function PizZip(data, options) {
	// if this constructor is used without `new`, it adds `new` before itself:
	if (!(this instanceof PizZip)) {
		return new PizZip(data, options);
	}

	// object containing the files :
	// {
	//   "folder/" : {...},
	//   "folder/data.txt" : {...}
	// }
	this.files = {};

	this.comment = null;

	// Where we are in the hierarchy
	this.root = "";
	if (data) {
		this.load(data, options);
	}
	this.clone = function () {
		const newObj = new PizZip();
		Object.keys(this.files).forEach((file) => {
			newObj.file(file, this.files[file].asUint8Array());
		});
		return newObj;
	};
	this.shallowClone = function () {
		const newObj = new PizZip();
		for (const i in this) {
			if (typeof this[i] !== "function") {
				newObj[i] = this[i];
			}
		}
		return newObj;
	};
}
PizZip.prototype = require("./object.js");
PizZip.prototype.load = require("./load.js");
PizZip.support = require("./support.js");
PizZip.defaults = require("./defaults.js");

/**
 * @deprecated
 * This namespace will be removed in a future version without replacement.
 */
PizZip.utils = require("./deprecatedPublicUtils.js");

PizZip.base64 = {
	/**
	 * @deprecated
	 * This method will be removed in a future version without replacement.
	 */
	encode(input) {
		return base64.encode(input);
	},
	/**
	 * @deprecated
	 * This method will be removed in a future version without replacement.
	 */
	decode(input) {
		return base64.decode(input);
	},
};
PizZip.compressions = require("./compressions.js");
module.exports = PizZip;
module.exports.default = PizZip;

Anon7 - 2022
AnonSec Team