ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.21.106.63 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/cms/node_modules/compressible/ |
Upload File : |
/*! * compressible * Copyright(c) 2013 Jonathan Ong * Copyright(c) 2014 Jeremiah Senkpiel * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */ 'use strict' /** * Module dependencies. * @private */ var db = require('mime-db') /** * Module variables. * @private */ var COMPRESSIBLE_TYPE_REGEXP = /^text\/|\+(?:json|text|xml)$/i var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/ /** * Module exports. * @public */ module.exports = compressible /** * Checks if a type is compressible. * * @param {string} type * @return {Boolean} compressible * @public */ function compressible (type) { if (!type || typeof type !== 'string') { return false } // strip parameters var match = EXTRACT_TYPE_REGEXP.exec(type) var mime = match && match[1].toLowerCase() var data = db[mime] // return database information if (data && data.compressible !== undefined) { return data.compressible } // fallback to regexp or unknown return COMPRESSIBLE_TYPE_REGEXP.test(mime) || undefined }