| Server IP : 123.56.80.60 / Your IP : 216.73.216.78 Web Server : Apache/2.4.54 (Win32) OpenSSL/1.1.1s PHP/7.4.33 mod_fcgid/2.3.10-dev System : Windows NT iZhx3sob14hnz7Z 10.0 build 14393 (Windows Server 2016) i586 User : SYSTEM ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Windows/SystemApps/Microsoft.Windows.Cortana_cw5n1h2txyewy/dss_service/node_modules/mime/ |
Upload File : |
function eq(n,t){console.log("Test: "+n+" === "+t);assert.strictEqual.apply(null,arguments)}var mime=require("./mime"),assert=require("assert"),path=require("path"),apacheTypes,nodeTypes,keys,i;for(console.log(Object.keys(mime.extensions).length+" types"),console.log(Object.keys(mime.types).length+" extensions\n"),eq("text/plain",mime.lookup("text.txt")),eq("text/plain",mime.lookup("TEXT.TXT")),eq("text/plain",mime.lookup("dir/text.txt")),eq("text/plain",mime.lookup(".text.txt")),eq("text/plain",mime.lookup(".txt")),eq("text/plain",mime.lookup("txt")),eq("text/plain",mime.lookup("/txt")),eq("text/plain",mime.lookup("\\txt")),eq("application/octet-stream",mime.lookup("text.nope")),eq("fallback",mime.lookup("text.fallback","fallback")),eq("txt",mime.extension(mime.types.text)),eq("html",mime.extension(mime.types.htm)),eq("bin",mime.extension("application/octet-stream")),eq("bin",mime.extension("application/octet-stream ")),eq("html",mime.extension(" text/html; charset=UTF-8")),eq("html",mime.extension("text/html; charset=UTF-8 ")),eq("html",mime.extension("text/html; charset=UTF-8")),eq("html",mime.extension("text/html ; charset=UTF-8")),eq("html",mime.extension("text/html;charset=UTF-8")),eq("html",mime.extension("text/Html;charset=UTF-8")),eq(undefined,mime.extension("unrecognized")),eq("application/font-woff",mime.lookup("file.woff")),eq("application/octet-stream",mime.lookup("file.buffer")),eq("audio/mp4",mime.lookup("file.m4a")),eq("font/opentype",mime.lookup("file.otf")),eq("UTF-8",mime.charsets.lookup("text/plain")),eq(undefined,mime.charsets.lookup(mime.types.js)),eq("fallback",mime.charsets.lookup("application/octet-stream","fallback")),apacheTypes=new mime.Mime,nodeTypes=new mime.Mime,apacheTypes.load(path.join(__dirname,"types/mime.types")),nodeTypes.load(path.join(__dirname,"types/node.types")),keys=[].concat(Object.keys(apacheTypes.types)).concat(Object.keys(nodeTypes.types)),keys.sort(),i=1;i<keys.length;i++)keys[i]==keys[i-1]&&console.warn("Warning: node.types defines "+keys[i]+"->"+nodeTypes.types[keys[i]]+", mime.types defines "+keys[i]+"->"+apacheTypes.types[keys[i]]);console.log("\nOK")