���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
.trash
/
node_modules
/
archiver
/
Viewing: index.js
/** * Archiver Vending * * @ignore * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. */ var Archiver = require('./lib/core'); var formats = {}; /** * Dispenses a new Archiver instance. * * @constructor * @param {String} format The archive format to use. * @param {Object} options See [Archiver]{@link Archiver} * @return {Archiver} */ var vending = function(format, options) { return vending.create(format, options); }; /** * Creates a new Archiver instance. * * @param {String} format The archive format to use. * @param {Object} options See [Archiver]{@link Archiver} * @return {Archiver} */ vending.create = function(format, options) { if (formats[format]) { var instance = new Archiver(format, options); instance.setFormat(format); instance.setModule(new formats[format](options)); return instance; } else { throw new Error('create(' + format + '): format not registered'); } }; /** * Registers a format for use with archiver. * * @param {String} format The name of the format. * @param {Function} module The function for archiver to interact with. * @return void */ vending.registerFormat = function(format, module) { if (formats[format]) { throw new Error('register(' + format + '): format already registered'); } if (typeof module !== 'function') { throw new Error('register(' + format + '): format module invalid'); } if (typeof module.prototype.append !== 'function' || typeof module.prototype.finalize !== 'function') { throw new Error('register(' + format + '): format module missing methods'); } formats[format] = module; }; /** * Check if the format is already registered. * * @param {String} format the name of the format. * @return boolean */ vending.isRegisteredFormat = function (format) { if (formats[format]) { return true; } return false; }; vending.registerFormat('zip', require('./lib/plugins/zip')); vending.registerFormat('tar', require('./lib/plugins/tar')); vending.registerFormat('json', require('./lib/plugins/json')); module.exports = vending;
Coded With 💗 by
0x6ick Mod By V1rus_Alfa