feat: docker compose maybe
This commit is contained in:
2
node_modules/mrmime/index.d.ts
generated
vendored
Normal file
2
node_modules/mrmime/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export const mimes: Record<string, string>;
|
||||
export function lookup(extension: string): string | void;
|
417
node_modules/mrmime/index.js
generated
vendored
Normal file
417
node_modules/mrmime/index.js
generated
vendored
Normal file
@ -0,0 +1,417 @@
|
||||
const mimes = {
|
||||
"ez": "application/andrew-inset",
|
||||
"aw": "application/applixware",
|
||||
"atom": "application/atom+xml",
|
||||
"atomcat": "application/atomcat+xml",
|
||||
"atomdeleted": "application/atomdeleted+xml",
|
||||
"atomsvc": "application/atomsvc+xml",
|
||||
"dwd": "application/atsc-dwd+xml",
|
||||
"held": "application/atsc-held+xml",
|
||||
"rsat": "application/atsc-rsat+xml",
|
||||
"bdoc": "application/bdoc",
|
||||
"xcs": "application/calendar+xml",
|
||||
"ccxml": "application/ccxml+xml",
|
||||
"cdfx": "application/cdfx+xml",
|
||||
"cdmia": "application/cdmi-capability",
|
||||
"cdmic": "application/cdmi-container",
|
||||
"cdmid": "application/cdmi-domain",
|
||||
"cdmio": "application/cdmi-object",
|
||||
"cdmiq": "application/cdmi-queue",
|
||||
"cu": "application/cu-seeme",
|
||||
"mpd": "application/dash+xml",
|
||||
"davmount": "application/davmount+xml",
|
||||
"dbk": "application/docbook+xml",
|
||||
"dssc": "application/dssc+der",
|
||||
"xdssc": "application/dssc+xml",
|
||||
"es": "application/ecmascript",
|
||||
"ecma": "application/ecmascript",
|
||||
"emma": "application/emma+xml",
|
||||
"emotionml": "application/emotionml+xml",
|
||||
"epub": "application/epub+zip",
|
||||
"exi": "application/exi",
|
||||
"fdt": "application/fdt+xml",
|
||||
"pfr": "application/font-tdpfr",
|
||||
"geojson": "application/geo+json",
|
||||
"gml": "application/gml+xml",
|
||||
"gpx": "application/gpx+xml",
|
||||
"gxf": "application/gxf",
|
||||
"gz": "application/gzip",
|
||||
"hjson": "application/hjson",
|
||||
"stk": "application/hyperstudio",
|
||||
"ink": "application/inkml+xml",
|
||||
"inkml": "application/inkml+xml",
|
||||
"ipfix": "application/ipfix",
|
||||
"its": "application/its+xml",
|
||||
"jar": "application/java-archive",
|
||||
"war": "application/java-archive",
|
||||
"ear": "application/java-archive",
|
||||
"ser": "application/java-serialized-object",
|
||||
"class": "application/java-vm",
|
||||
"js": "application/javascript",
|
||||
"mjs": "application/javascript",
|
||||
"json": "application/json",
|
||||
"map": "application/json",
|
||||
"json5": "application/json5",
|
||||
"jsonml": "application/jsonml+json",
|
||||
"jsonld": "application/ld+json",
|
||||
"lgr": "application/lgr+xml",
|
||||
"lostxml": "application/lost+xml",
|
||||
"hqx": "application/mac-binhex40",
|
||||
"cpt": "application/mac-compactpro",
|
||||
"mads": "application/mads+xml",
|
||||
"webmanifest": "application/manifest+json",
|
||||
"mrc": "application/marc",
|
||||
"mrcx": "application/marcxml+xml",
|
||||
"ma": "application/mathematica",
|
||||
"nb": "application/mathematica",
|
||||
"mb": "application/mathematica",
|
||||
"mathml": "application/mathml+xml",
|
||||
"mbox": "application/mbox",
|
||||
"mscml": "application/mediaservercontrol+xml",
|
||||
"metalink": "application/metalink+xml",
|
||||
"meta4": "application/metalink4+xml",
|
||||
"mets": "application/mets+xml",
|
||||
"maei": "application/mmt-aei+xml",
|
||||
"musd": "application/mmt-usd+xml",
|
||||
"mods": "application/mods+xml",
|
||||
"m21": "application/mp21",
|
||||
"mp21": "application/mp21",
|
||||
"mp4s": "application/mp4",
|
||||
"m4p": "application/mp4",
|
||||
"doc": "application/msword",
|
||||
"dot": "application/msword",
|
||||
"mxf": "application/mxf",
|
||||
"nq": "application/n-quads",
|
||||
"nt": "application/n-triples",
|
||||
"cjs": "application/node",
|
||||
"bin": "application/octet-stream",
|
||||
"dms": "application/octet-stream",
|
||||
"lrf": "application/octet-stream",
|
||||
"mar": "application/octet-stream",
|
||||
"so": "application/octet-stream",
|
||||
"dist": "application/octet-stream",
|
||||
"distz": "application/octet-stream",
|
||||
"pkg": "application/octet-stream",
|
||||
"bpk": "application/octet-stream",
|
||||
"dump": "application/octet-stream",
|
||||
"elc": "application/octet-stream",
|
||||
"deploy": "application/octet-stream",
|
||||
"exe": "application/octet-stream",
|
||||
"dll": "application/octet-stream",
|
||||
"deb": "application/octet-stream",
|
||||
"dmg": "application/octet-stream",
|
||||
"iso": "application/octet-stream",
|
||||
"img": "application/octet-stream",
|
||||
"msi": "application/octet-stream",
|
||||
"msp": "application/octet-stream",
|
||||
"msm": "application/octet-stream",
|
||||
"buffer": "application/octet-stream",
|
||||
"oda": "application/oda",
|
||||
"opf": "application/oebps-package+xml",
|
||||
"ogx": "application/ogg",
|
||||
"omdoc": "application/omdoc+xml",
|
||||
"onetoc": "application/onenote",
|
||||
"onetoc2": "application/onenote",
|
||||
"onetmp": "application/onenote",
|
||||
"onepkg": "application/onenote",
|
||||
"oxps": "application/oxps",
|
||||
"relo": "application/p2p-overlay+xml",
|
||||
"xer": "application/patch-ops-error+xml",
|
||||
"pdf": "application/pdf",
|
||||
"pgp": "application/pgp-encrypted",
|
||||
"asc": "application/pgp-signature",
|
||||
"sig": "application/pgp-signature",
|
||||
"prf": "application/pics-rules",
|
||||
"p10": "application/pkcs10",
|
||||
"p7m": "application/pkcs7-mime",
|
||||
"p7c": "application/pkcs7-mime",
|
||||
"p7s": "application/pkcs7-signature",
|
||||
"p8": "application/pkcs8",
|
||||
"ac": "application/pkix-attr-cert",
|
||||
"cer": "application/pkix-cert",
|
||||
"crl": "application/pkix-crl",
|
||||
"pkipath": "application/pkix-pkipath",
|
||||
"pki": "application/pkixcmp",
|
||||
"pls": "application/pls+xml",
|
||||
"ai": "application/postscript",
|
||||
"eps": "application/postscript",
|
||||
"ps": "application/postscript",
|
||||
"provx": "application/provenance+xml",
|
||||
"cww": "application/prs.cww",
|
||||
"pskcxml": "application/pskc+xml",
|
||||
"raml": "application/raml+yaml",
|
||||
"rdf": "application/rdf+xml",
|
||||
"owl": "application/rdf+xml",
|
||||
"rif": "application/reginfo+xml",
|
||||
"rnc": "application/relax-ng-compact-syntax",
|
||||
"rl": "application/resource-lists+xml",
|
||||
"rld": "application/resource-lists-diff+xml",
|
||||
"rs": "application/rls-services+xml",
|
||||
"rapd": "application/route-apd+xml",
|
||||
"sls": "application/route-s-tsid+xml",
|
||||
"rusd": "application/route-usd+xml",
|
||||
"gbr": "application/rpki-ghostbusters",
|
||||
"mft": "application/rpki-manifest",
|
||||
"roa": "application/rpki-roa",
|
||||
"rsd": "application/rsd+xml",
|
||||
"rss": "application/rss+xml",
|
||||
"rtf": "application/rtf",
|
||||
"sbml": "application/sbml+xml",
|
||||
"scq": "application/scvp-cv-request",
|
||||
"scs": "application/scvp-cv-response",
|
||||
"spq": "application/scvp-vp-request",
|
||||
"spp": "application/scvp-vp-response",
|
||||
"sdp": "application/sdp",
|
||||
"senmlx": "application/senml+xml",
|
||||
"sensmlx": "application/sensml+xml",
|
||||
"setpay": "application/set-payment-initiation",
|
||||
"setreg": "application/set-registration-initiation",
|
||||
"shf": "application/shf+xml",
|
||||
"siv": "application/sieve",
|
||||
"sieve": "application/sieve",
|
||||
"smi": "application/smil+xml",
|
||||
"smil": "application/smil+xml",
|
||||
"rq": "application/sparql-query",
|
||||
"srx": "application/sparql-results+xml",
|
||||
"gram": "application/srgs",
|
||||
"grxml": "application/srgs+xml",
|
||||
"sru": "application/sru+xml",
|
||||
"ssdl": "application/ssdl+xml",
|
||||
"ssml": "application/ssml+xml",
|
||||
"swidtag": "application/swid+xml",
|
||||
"tei": "application/tei+xml",
|
||||
"teicorpus": "application/tei+xml",
|
||||
"tfi": "application/thraud+xml",
|
||||
"tsd": "application/timestamped-data",
|
||||
"toml": "application/toml",
|
||||
"trig": "application/trig",
|
||||
"ttml": "application/ttml+xml",
|
||||
"ubj": "application/ubjson",
|
||||
"rsheet": "application/urc-ressheet+xml",
|
||||
"td": "application/urc-targetdesc+xml",
|
||||
"vxml": "application/voicexml+xml",
|
||||
"wasm": "application/wasm",
|
||||
"wgt": "application/widget",
|
||||
"hlp": "application/winhlp",
|
||||
"wsdl": "application/wsdl+xml",
|
||||
"wspolicy": "application/wspolicy+xml",
|
||||
"xaml": "application/xaml+xml",
|
||||
"xav": "application/xcap-att+xml",
|
||||
"xca": "application/xcap-caps+xml",
|
||||
"xdf": "application/xcap-diff+xml",
|
||||
"xel": "application/xcap-el+xml",
|
||||
"xns": "application/xcap-ns+xml",
|
||||
"xenc": "application/xenc+xml",
|
||||
"xhtml": "application/xhtml+xml",
|
||||
"xht": "application/xhtml+xml",
|
||||
"xlf": "application/xliff+xml",
|
||||
"xml": "application/xml",
|
||||
"xsl": "application/xml",
|
||||
"xsd": "application/xml",
|
||||
"rng": "application/xml",
|
||||
"dtd": "application/xml-dtd",
|
||||
"xop": "application/xop+xml",
|
||||
"xpl": "application/xproc+xml",
|
||||
"xslt": "application/xml",
|
||||
"xspf": "application/xspf+xml",
|
||||
"mxml": "application/xv+xml",
|
||||
"xhvml": "application/xv+xml",
|
||||
"xvml": "application/xv+xml",
|
||||
"xvm": "application/xv+xml",
|
||||
"yang": "application/yang",
|
||||
"yin": "application/yin+xml",
|
||||
"zip": "application/zip",
|
||||
"3gpp": "video/3gpp",
|
||||
"adp": "audio/adpcm",
|
||||
"amr": "audio/amr",
|
||||
"au": "audio/basic",
|
||||
"snd": "audio/basic",
|
||||
"mid": "audio/midi",
|
||||
"midi": "audio/midi",
|
||||
"kar": "audio/midi",
|
||||
"rmi": "audio/midi",
|
||||
"mxmf": "audio/mobile-xmf",
|
||||
"mp3": "audio/mpeg",
|
||||
"m4a": "audio/mp4",
|
||||
"mp4a": "audio/mp4",
|
||||
"mpga": "audio/mpeg",
|
||||
"mp2": "audio/mpeg",
|
||||
"mp2a": "audio/mpeg",
|
||||
"m2a": "audio/mpeg",
|
||||
"m3a": "audio/mpeg",
|
||||
"oga": "audio/ogg",
|
||||
"ogg": "audio/ogg",
|
||||
"spx": "audio/ogg",
|
||||
"opus": "audio/ogg",
|
||||
"s3m": "audio/s3m",
|
||||
"sil": "audio/silk",
|
||||
"wav": "audio/wav",
|
||||
"weba": "audio/webm",
|
||||
"xm": "audio/xm",
|
||||
"ttc": "font/collection",
|
||||
"otf": "font/otf",
|
||||
"ttf": "font/ttf",
|
||||
"woff": "font/woff",
|
||||
"woff2": "font/woff2",
|
||||
"exr": "image/aces",
|
||||
"apng": "image/apng",
|
||||
"avif": "image/avif",
|
||||
"bmp": "image/bmp",
|
||||
"cgm": "image/cgm",
|
||||
"drle": "image/dicom-rle",
|
||||
"emf": "image/emf",
|
||||
"fits": "image/fits",
|
||||
"g3": "image/g3fax",
|
||||
"gif": "image/gif",
|
||||
"heic": "image/heic",
|
||||
"heics": "image/heic-sequence",
|
||||
"heif": "image/heif",
|
||||
"heifs": "image/heif-sequence",
|
||||
"hej2": "image/hej2k",
|
||||
"hsj2": "image/hsj2",
|
||||
"ief": "image/ief",
|
||||
"jls": "image/jls",
|
||||
"jp2": "image/jp2",
|
||||
"jpg2": "image/jp2",
|
||||
"jpeg": "image/jpeg",
|
||||
"jpg": "image/jpeg",
|
||||
"jpe": "image/jpeg",
|
||||
"jph": "image/jph",
|
||||
"jhc": "image/jphc",
|
||||
"jpm": "image/jpm",
|
||||
"jpx": "image/jpx",
|
||||
"jpf": "image/jpx",
|
||||
"jxr": "image/jxr",
|
||||
"jxra": "image/jxra",
|
||||
"jxrs": "image/jxrs",
|
||||
"jxs": "image/jxs",
|
||||
"jxsc": "image/jxsc",
|
||||
"jxsi": "image/jxsi",
|
||||
"jxss": "image/jxss",
|
||||
"ktx": "image/ktx",
|
||||
"ktx2": "image/ktx2",
|
||||
"png": "image/png",
|
||||
"btif": "image/prs.btif",
|
||||
"pti": "image/prs.pti",
|
||||
"sgi": "image/sgi",
|
||||
"svg": "image/svg+xml",
|
||||
"svgz": "image/svg+xml",
|
||||
"t38": "image/t38",
|
||||
"tif": "image/tiff",
|
||||
"tiff": "image/tiff",
|
||||
"tfx": "image/tiff-fx",
|
||||
"webp": "image/webp",
|
||||
"wmf": "image/wmf",
|
||||
"disposition-notification": "message/disposition-notification",
|
||||
"u8msg": "message/global",
|
||||
"u8dsn": "message/global-delivery-status",
|
||||
"u8mdn": "message/global-disposition-notification",
|
||||
"u8hdr": "message/global-headers",
|
||||
"eml": "message/rfc822",
|
||||
"mime": "message/rfc822",
|
||||
"3mf": "model/3mf",
|
||||
"gltf": "model/gltf+json",
|
||||
"glb": "model/gltf-binary",
|
||||
"igs": "model/iges",
|
||||
"iges": "model/iges",
|
||||
"msh": "model/mesh",
|
||||
"mesh": "model/mesh",
|
||||
"silo": "model/mesh",
|
||||
"mtl": "model/mtl",
|
||||
"obj": "model/obj",
|
||||
"stpz": "model/step+zip",
|
||||
"stpxz": "model/step-xml+zip",
|
||||
"stl": "model/stl",
|
||||
"wrl": "model/vrml",
|
||||
"vrml": "model/vrml",
|
||||
"x3db": "model/x3d+fastinfoset",
|
||||
"x3dbz": "model/x3d+binary",
|
||||
"x3dv": "model/x3d-vrml",
|
||||
"x3dvz": "model/x3d+vrml",
|
||||
"x3d": "model/x3d+xml",
|
||||
"x3dz": "model/x3d+xml",
|
||||
"appcache": "text/cache-manifest",
|
||||
"manifest": "text/cache-manifest",
|
||||
"ics": "text/calendar",
|
||||
"ifb": "text/calendar",
|
||||
"coffee": "text/coffeescript",
|
||||
"litcoffee": "text/coffeescript",
|
||||
"css": "text/css",
|
||||
"csv": "text/csv",
|
||||
"html": "text/html",
|
||||
"htm": "text/html",
|
||||
"shtml": "text/html",
|
||||
"jade": "text/jade",
|
||||
"jsx": "text/jsx",
|
||||
"less": "text/less",
|
||||
"markdown": "text/markdown",
|
||||
"md": "text/markdown",
|
||||
"mml": "text/mathml",
|
||||
"mdx": "text/mdx",
|
||||
"n3": "text/n3",
|
||||
"txt": "text/plain",
|
||||
"text": "text/plain",
|
||||
"conf": "text/plain",
|
||||
"def": "text/plain",
|
||||
"list": "text/plain",
|
||||
"log": "text/plain",
|
||||
"in": "text/plain",
|
||||
"ini": "text/plain",
|
||||
"dsc": "text/prs.lines.tag",
|
||||
"rtx": "text/richtext",
|
||||
"sgml": "text/sgml",
|
||||
"sgm": "text/sgml",
|
||||
"shex": "text/shex",
|
||||
"slim": "text/slim",
|
||||
"slm": "text/slim",
|
||||
"spdx": "text/spdx",
|
||||
"stylus": "text/stylus",
|
||||
"styl": "text/stylus",
|
||||
"tsv": "text/tab-separated-values",
|
||||
"t": "text/troff",
|
||||
"tr": "text/troff",
|
||||
"roff": "text/troff",
|
||||
"man": "text/troff",
|
||||
"me": "text/troff",
|
||||
"ms": "text/troff",
|
||||
"ttl": "text/turtle",
|
||||
"uri": "text/uri-list",
|
||||
"uris": "text/uri-list",
|
||||
"urls": "text/uri-list",
|
||||
"vcard": "text/vcard",
|
||||
"vtt": "text/vtt",
|
||||
"yaml": "text/yaml",
|
||||
"yml": "text/yaml",
|
||||
"3gp": "video/3gpp",
|
||||
"3g2": "video/3gpp2",
|
||||
"h261": "video/h261",
|
||||
"h263": "video/h263",
|
||||
"h264": "video/h264",
|
||||
"m4s": "video/iso.segment",
|
||||
"jpgv": "video/jpeg",
|
||||
"jpgm": "image/jpm",
|
||||
"mj2": "video/mj2",
|
||||
"mjp2": "video/mj2",
|
||||
"ts": "video/mp2t",
|
||||
"mp4": "video/mp4",
|
||||
"mp4v": "video/mp4",
|
||||
"mpg4": "video/mp4",
|
||||
"mpeg": "video/mpeg",
|
||||
"mpg": "video/mpeg",
|
||||
"mpe": "video/mpeg",
|
||||
"m1v": "video/mpeg",
|
||||
"m2v": "video/mpeg",
|
||||
"ogv": "video/ogg",
|
||||
"qt": "video/quicktime",
|
||||
"mov": "video/quicktime",
|
||||
"webm": "video/webm"
|
||||
};
|
||||
|
||||
function lookup(extn) {
|
||||
let tmp = ('' + extn).trim().toLowerCase();
|
||||
let idx = tmp.lastIndexOf('.');
|
||||
return mimes[!~idx ? tmp : tmp.substring(++idx)];
|
||||
}
|
||||
|
||||
exports.lookup = lookup;
|
||||
exports.mimes = mimes;
|
414
node_modules/mrmime/index.mjs
generated
vendored
Normal file
414
node_modules/mrmime/index.mjs
generated
vendored
Normal file
@ -0,0 +1,414 @@
|
||||
export const mimes = {
|
||||
"ez": "application/andrew-inset",
|
||||
"aw": "application/applixware",
|
||||
"atom": "application/atom+xml",
|
||||
"atomcat": "application/atomcat+xml",
|
||||
"atomdeleted": "application/atomdeleted+xml",
|
||||
"atomsvc": "application/atomsvc+xml",
|
||||
"dwd": "application/atsc-dwd+xml",
|
||||
"held": "application/atsc-held+xml",
|
||||
"rsat": "application/atsc-rsat+xml",
|
||||
"bdoc": "application/bdoc",
|
||||
"xcs": "application/calendar+xml",
|
||||
"ccxml": "application/ccxml+xml",
|
||||
"cdfx": "application/cdfx+xml",
|
||||
"cdmia": "application/cdmi-capability",
|
||||
"cdmic": "application/cdmi-container",
|
||||
"cdmid": "application/cdmi-domain",
|
||||
"cdmio": "application/cdmi-object",
|
||||
"cdmiq": "application/cdmi-queue",
|
||||
"cu": "application/cu-seeme",
|
||||
"mpd": "application/dash+xml",
|
||||
"davmount": "application/davmount+xml",
|
||||
"dbk": "application/docbook+xml",
|
||||
"dssc": "application/dssc+der",
|
||||
"xdssc": "application/dssc+xml",
|
||||
"es": "application/ecmascript",
|
||||
"ecma": "application/ecmascript",
|
||||
"emma": "application/emma+xml",
|
||||
"emotionml": "application/emotionml+xml",
|
||||
"epub": "application/epub+zip",
|
||||
"exi": "application/exi",
|
||||
"fdt": "application/fdt+xml",
|
||||
"pfr": "application/font-tdpfr",
|
||||
"geojson": "application/geo+json",
|
||||
"gml": "application/gml+xml",
|
||||
"gpx": "application/gpx+xml",
|
||||
"gxf": "application/gxf",
|
||||
"gz": "application/gzip",
|
||||
"hjson": "application/hjson",
|
||||
"stk": "application/hyperstudio",
|
||||
"ink": "application/inkml+xml",
|
||||
"inkml": "application/inkml+xml",
|
||||
"ipfix": "application/ipfix",
|
||||
"its": "application/its+xml",
|
||||
"jar": "application/java-archive",
|
||||
"war": "application/java-archive",
|
||||
"ear": "application/java-archive",
|
||||
"ser": "application/java-serialized-object",
|
||||
"class": "application/java-vm",
|
||||
"js": "application/javascript",
|
||||
"mjs": "application/javascript",
|
||||
"json": "application/json",
|
||||
"map": "application/json",
|
||||
"json5": "application/json5",
|
||||
"jsonml": "application/jsonml+json",
|
||||
"jsonld": "application/ld+json",
|
||||
"lgr": "application/lgr+xml",
|
||||
"lostxml": "application/lost+xml",
|
||||
"hqx": "application/mac-binhex40",
|
||||
"cpt": "application/mac-compactpro",
|
||||
"mads": "application/mads+xml",
|
||||
"webmanifest": "application/manifest+json",
|
||||
"mrc": "application/marc",
|
||||
"mrcx": "application/marcxml+xml",
|
||||
"ma": "application/mathematica",
|
||||
"nb": "application/mathematica",
|
||||
"mb": "application/mathematica",
|
||||
"mathml": "application/mathml+xml",
|
||||
"mbox": "application/mbox",
|
||||
"mscml": "application/mediaservercontrol+xml",
|
||||
"metalink": "application/metalink+xml",
|
||||
"meta4": "application/metalink4+xml",
|
||||
"mets": "application/mets+xml",
|
||||
"maei": "application/mmt-aei+xml",
|
||||
"musd": "application/mmt-usd+xml",
|
||||
"mods": "application/mods+xml",
|
||||
"m21": "application/mp21",
|
||||
"mp21": "application/mp21",
|
||||
"mp4s": "application/mp4",
|
||||
"m4p": "application/mp4",
|
||||
"doc": "application/msword",
|
||||
"dot": "application/msword",
|
||||
"mxf": "application/mxf",
|
||||
"nq": "application/n-quads",
|
||||
"nt": "application/n-triples",
|
||||
"cjs": "application/node",
|
||||
"bin": "application/octet-stream",
|
||||
"dms": "application/octet-stream",
|
||||
"lrf": "application/octet-stream",
|
||||
"mar": "application/octet-stream",
|
||||
"so": "application/octet-stream",
|
||||
"dist": "application/octet-stream",
|
||||
"distz": "application/octet-stream",
|
||||
"pkg": "application/octet-stream",
|
||||
"bpk": "application/octet-stream",
|
||||
"dump": "application/octet-stream",
|
||||
"elc": "application/octet-stream",
|
||||
"deploy": "application/octet-stream",
|
||||
"exe": "application/octet-stream",
|
||||
"dll": "application/octet-stream",
|
||||
"deb": "application/octet-stream",
|
||||
"dmg": "application/octet-stream",
|
||||
"iso": "application/octet-stream",
|
||||
"img": "application/octet-stream",
|
||||
"msi": "application/octet-stream",
|
||||
"msp": "application/octet-stream",
|
||||
"msm": "application/octet-stream",
|
||||
"buffer": "application/octet-stream",
|
||||
"oda": "application/oda",
|
||||
"opf": "application/oebps-package+xml",
|
||||
"ogx": "application/ogg",
|
||||
"omdoc": "application/omdoc+xml",
|
||||
"onetoc": "application/onenote",
|
||||
"onetoc2": "application/onenote",
|
||||
"onetmp": "application/onenote",
|
||||
"onepkg": "application/onenote",
|
||||
"oxps": "application/oxps",
|
||||
"relo": "application/p2p-overlay+xml",
|
||||
"xer": "application/patch-ops-error+xml",
|
||||
"pdf": "application/pdf",
|
||||
"pgp": "application/pgp-encrypted",
|
||||
"asc": "application/pgp-signature",
|
||||
"sig": "application/pgp-signature",
|
||||
"prf": "application/pics-rules",
|
||||
"p10": "application/pkcs10",
|
||||
"p7m": "application/pkcs7-mime",
|
||||
"p7c": "application/pkcs7-mime",
|
||||
"p7s": "application/pkcs7-signature",
|
||||
"p8": "application/pkcs8",
|
||||
"ac": "application/pkix-attr-cert",
|
||||
"cer": "application/pkix-cert",
|
||||
"crl": "application/pkix-crl",
|
||||
"pkipath": "application/pkix-pkipath",
|
||||
"pki": "application/pkixcmp",
|
||||
"pls": "application/pls+xml",
|
||||
"ai": "application/postscript",
|
||||
"eps": "application/postscript",
|
||||
"ps": "application/postscript",
|
||||
"provx": "application/provenance+xml",
|
||||
"cww": "application/prs.cww",
|
||||
"pskcxml": "application/pskc+xml",
|
||||
"raml": "application/raml+yaml",
|
||||
"rdf": "application/rdf+xml",
|
||||
"owl": "application/rdf+xml",
|
||||
"rif": "application/reginfo+xml",
|
||||
"rnc": "application/relax-ng-compact-syntax",
|
||||
"rl": "application/resource-lists+xml",
|
||||
"rld": "application/resource-lists-diff+xml",
|
||||
"rs": "application/rls-services+xml",
|
||||
"rapd": "application/route-apd+xml",
|
||||
"sls": "application/route-s-tsid+xml",
|
||||
"rusd": "application/route-usd+xml",
|
||||
"gbr": "application/rpki-ghostbusters",
|
||||
"mft": "application/rpki-manifest",
|
||||
"roa": "application/rpki-roa",
|
||||
"rsd": "application/rsd+xml",
|
||||
"rss": "application/rss+xml",
|
||||
"rtf": "application/rtf",
|
||||
"sbml": "application/sbml+xml",
|
||||
"scq": "application/scvp-cv-request",
|
||||
"scs": "application/scvp-cv-response",
|
||||
"spq": "application/scvp-vp-request",
|
||||
"spp": "application/scvp-vp-response",
|
||||
"sdp": "application/sdp",
|
||||
"senmlx": "application/senml+xml",
|
||||
"sensmlx": "application/sensml+xml",
|
||||
"setpay": "application/set-payment-initiation",
|
||||
"setreg": "application/set-registration-initiation",
|
||||
"shf": "application/shf+xml",
|
||||
"siv": "application/sieve",
|
||||
"sieve": "application/sieve",
|
||||
"smi": "application/smil+xml",
|
||||
"smil": "application/smil+xml",
|
||||
"rq": "application/sparql-query",
|
||||
"srx": "application/sparql-results+xml",
|
||||
"gram": "application/srgs",
|
||||
"grxml": "application/srgs+xml",
|
||||
"sru": "application/sru+xml",
|
||||
"ssdl": "application/ssdl+xml",
|
||||
"ssml": "application/ssml+xml",
|
||||
"swidtag": "application/swid+xml",
|
||||
"tei": "application/tei+xml",
|
||||
"teicorpus": "application/tei+xml",
|
||||
"tfi": "application/thraud+xml",
|
||||
"tsd": "application/timestamped-data",
|
||||
"toml": "application/toml",
|
||||
"trig": "application/trig",
|
||||
"ttml": "application/ttml+xml",
|
||||
"ubj": "application/ubjson",
|
||||
"rsheet": "application/urc-ressheet+xml",
|
||||
"td": "application/urc-targetdesc+xml",
|
||||
"vxml": "application/voicexml+xml",
|
||||
"wasm": "application/wasm",
|
||||
"wgt": "application/widget",
|
||||
"hlp": "application/winhlp",
|
||||
"wsdl": "application/wsdl+xml",
|
||||
"wspolicy": "application/wspolicy+xml",
|
||||
"xaml": "application/xaml+xml",
|
||||
"xav": "application/xcap-att+xml",
|
||||
"xca": "application/xcap-caps+xml",
|
||||
"xdf": "application/xcap-diff+xml",
|
||||
"xel": "application/xcap-el+xml",
|
||||
"xns": "application/xcap-ns+xml",
|
||||
"xenc": "application/xenc+xml",
|
||||
"xhtml": "application/xhtml+xml",
|
||||
"xht": "application/xhtml+xml",
|
||||
"xlf": "application/xliff+xml",
|
||||
"xml": "application/xml",
|
||||
"xsl": "application/xml",
|
||||
"xsd": "application/xml",
|
||||
"rng": "application/xml",
|
||||
"dtd": "application/xml-dtd",
|
||||
"xop": "application/xop+xml",
|
||||
"xpl": "application/xproc+xml",
|
||||
"xslt": "application/xml",
|
||||
"xspf": "application/xspf+xml",
|
||||
"mxml": "application/xv+xml",
|
||||
"xhvml": "application/xv+xml",
|
||||
"xvml": "application/xv+xml",
|
||||
"xvm": "application/xv+xml",
|
||||
"yang": "application/yang",
|
||||
"yin": "application/yin+xml",
|
||||
"zip": "application/zip",
|
||||
"3gpp": "video/3gpp",
|
||||
"adp": "audio/adpcm",
|
||||
"amr": "audio/amr",
|
||||
"au": "audio/basic",
|
||||
"snd": "audio/basic",
|
||||
"mid": "audio/midi",
|
||||
"midi": "audio/midi",
|
||||
"kar": "audio/midi",
|
||||
"rmi": "audio/midi",
|
||||
"mxmf": "audio/mobile-xmf",
|
||||
"mp3": "audio/mpeg",
|
||||
"m4a": "audio/mp4",
|
||||
"mp4a": "audio/mp4",
|
||||
"mpga": "audio/mpeg",
|
||||
"mp2": "audio/mpeg",
|
||||
"mp2a": "audio/mpeg",
|
||||
"m2a": "audio/mpeg",
|
||||
"m3a": "audio/mpeg",
|
||||
"oga": "audio/ogg",
|
||||
"ogg": "audio/ogg",
|
||||
"spx": "audio/ogg",
|
||||
"opus": "audio/ogg",
|
||||
"s3m": "audio/s3m",
|
||||
"sil": "audio/silk",
|
||||
"wav": "audio/wav",
|
||||
"weba": "audio/webm",
|
||||
"xm": "audio/xm",
|
||||
"ttc": "font/collection",
|
||||
"otf": "font/otf",
|
||||
"ttf": "font/ttf",
|
||||
"woff": "font/woff",
|
||||
"woff2": "font/woff2",
|
||||
"exr": "image/aces",
|
||||
"apng": "image/apng",
|
||||
"avif": "image/avif",
|
||||
"bmp": "image/bmp",
|
||||
"cgm": "image/cgm",
|
||||
"drle": "image/dicom-rle",
|
||||
"emf": "image/emf",
|
||||
"fits": "image/fits",
|
||||
"g3": "image/g3fax",
|
||||
"gif": "image/gif",
|
||||
"heic": "image/heic",
|
||||
"heics": "image/heic-sequence",
|
||||
"heif": "image/heif",
|
||||
"heifs": "image/heif-sequence",
|
||||
"hej2": "image/hej2k",
|
||||
"hsj2": "image/hsj2",
|
||||
"ief": "image/ief",
|
||||
"jls": "image/jls",
|
||||
"jp2": "image/jp2",
|
||||
"jpg2": "image/jp2",
|
||||
"jpeg": "image/jpeg",
|
||||
"jpg": "image/jpeg",
|
||||
"jpe": "image/jpeg",
|
||||
"jph": "image/jph",
|
||||
"jhc": "image/jphc",
|
||||
"jpm": "image/jpm",
|
||||
"jpx": "image/jpx",
|
||||
"jpf": "image/jpx",
|
||||
"jxr": "image/jxr",
|
||||
"jxra": "image/jxra",
|
||||
"jxrs": "image/jxrs",
|
||||
"jxs": "image/jxs",
|
||||
"jxsc": "image/jxsc",
|
||||
"jxsi": "image/jxsi",
|
||||
"jxss": "image/jxss",
|
||||
"ktx": "image/ktx",
|
||||
"ktx2": "image/ktx2",
|
||||
"png": "image/png",
|
||||
"btif": "image/prs.btif",
|
||||
"pti": "image/prs.pti",
|
||||
"sgi": "image/sgi",
|
||||
"svg": "image/svg+xml",
|
||||
"svgz": "image/svg+xml",
|
||||
"t38": "image/t38",
|
||||
"tif": "image/tiff",
|
||||
"tiff": "image/tiff",
|
||||
"tfx": "image/tiff-fx",
|
||||
"webp": "image/webp",
|
||||
"wmf": "image/wmf",
|
||||
"disposition-notification": "message/disposition-notification",
|
||||
"u8msg": "message/global",
|
||||
"u8dsn": "message/global-delivery-status",
|
||||
"u8mdn": "message/global-disposition-notification",
|
||||
"u8hdr": "message/global-headers",
|
||||
"eml": "message/rfc822",
|
||||
"mime": "message/rfc822",
|
||||
"3mf": "model/3mf",
|
||||
"gltf": "model/gltf+json",
|
||||
"glb": "model/gltf-binary",
|
||||
"igs": "model/iges",
|
||||
"iges": "model/iges",
|
||||
"msh": "model/mesh",
|
||||
"mesh": "model/mesh",
|
||||
"silo": "model/mesh",
|
||||
"mtl": "model/mtl",
|
||||
"obj": "model/obj",
|
||||
"stpz": "model/step+zip",
|
||||
"stpxz": "model/step-xml+zip",
|
||||
"stl": "model/stl",
|
||||
"wrl": "model/vrml",
|
||||
"vrml": "model/vrml",
|
||||
"x3db": "model/x3d+fastinfoset",
|
||||
"x3dbz": "model/x3d+binary",
|
||||
"x3dv": "model/x3d-vrml",
|
||||
"x3dvz": "model/x3d+vrml",
|
||||
"x3d": "model/x3d+xml",
|
||||
"x3dz": "model/x3d+xml",
|
||||
"appcache": "text/cache-manifest",
|
||||
"manifest": "text/cache-manifest",
|
||||
"ics": "text/calendar",
|
||||
"ifb": "text/calendar",
|
||||
"coffee": "text/coffeescript",
|
||||
"litcoffee": "text/coffeescript",
|
||||
"css": "text/css",
|
||||
"csv": "text/csv",
|
||||
"html": "text/html",
|
||||
"htm": "text/html",
|
||||
"shtml": "text/html",
|
||||
"jade": "text/jade",
|
||||
"jsx": "text/jsx",
|
||||
"less": "text/less",
|
||||
"markdown": "text/markdown",
|
||||
"md": "text/markdown",
|
||||
"mml": "text/mathml",
|
||||
"mdx": "text/mdx",
|
||||
"n3": "text/n3",
|
||||
"txt": "text/plain",
|
||||
"text": "text/plain",
|
||||
"conf": "text/plain",
|
||||
"def": "text/plain",
|
||||
"list": "text/plain",
|
||||
"log": "text/plain",
|
||||
"in": "text/plain",
|
||||
"ini": "text/plain",
|
||||
"dsc": "text/prs.lines.tag",
|
||||
"rtx": "text/richtext",
|
||||
"sgml": "text/sgml",
|
||||
"sgm": "text/sgml",
|
||||
"shex": "text/shex",
|
||||
"slim": "text/slim",
|
||||
"slm": "text/slim",
|
||||
"spdx": "text/spdx",
|
||||
"stylus": "text/stylus",
|
||||
"styl": "text/stylus",
|
||||
"tsv": "text/tab-separated-values",
|
||||
"t": "text/troff",
|
||||
"tr": "text/troff",
|
||||
"roff": "text/troff",
|
||||
"man": "text/troff",
|
||||
"me": "text/troff",
|
||||
"ms": "text/troff",
|
||||
"ttl": "text/turtle",
|
||||
"uri": "text/uri-list",
|
||||
"uris": "text/uri-list",
|
||||
"urls": "text/uri-list",
|
||||
"vcard": "text/vcard",
|
||||
"vtt": "text/vtt",
|
||||
"yaml": "text/yaml",
|
||||
"yml": "text/yaml",
|
||||
"3gp": "video/3gpp",
|
||||
"3g2": "video/3gpp2",
|
||||
"h261": "video/h261",
|
||||
"h263": "video/h263",
|
||||
"h264": "video/h264",
|
||||
"m4s": "video/iso.segment",
|
||||
"jpgv": "video/jpeg",
|
||||
"jpgm": "image/jpm",
|
||||
"mj2": "video/mj2",
|
||||
"mjp2": "video/mj2",
|
||||
"ts": "video/mp2t",
|
||||
"mp4": "video/mp4",
|
||||
"mp4v": "video/mp4",
|
||||
"mpg4": "video/mp4",
|
||||
"mpeg": "video/mpeg",
|
||||
"mpg": "video/mpeg",
|
||||
"mpe": "video/mpeg",
|
||||
"m1v": "video/mpeg",
|
||||
"m2v": "video/mpeg",
|
||||
"ogv": "video/ogg",
|
||||
"qt": "video/quicktime",
|
||||
"mov": "video/quicktime",
|
||||
"webm": "video/webm"
|
||||
};
|
||||
|
||||
export function lookup(extn) {
|
||||
let tmp = ('' + extn).trim().toLowerCase();
|
||||
let idx = tmp.lastIndexOf('.');
|
||||
return mimes[!~idx ? tmp : tmp.substring(++idx)];
|
||||
}
|
21
node_modules/mrmime/license
generated
vendored
Normal file
21
node_modules/mrmime/license
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (https://lukeed.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
45
node_modules/mrmime/package.json
generated
vendored
Normal file
45
node_modules/mrmime/package.json
generated
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
{
|
||||
"name": "mrmime",
|
||||
"version": "1.0.1",
|
||||
"repository": "lukeed/mrmime",
|
||||
"description": "A tiny (2.8kB) and fast utility for getting a MIME type from an extension or filename",
|
||||
"module": "index.mjs",
|
||||
"types": "index.d.ts",
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
"author": {
|
||||
"name": "Luke Edwards",
|
||||
"email": "luke.edwards05@gmail.com",
|
||||
"url": "https://lukeed.com"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./index.d.ts",
|
||||
"import": "./index.mjs",
|
||||
"require": "./index.js"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"index.mjs",
|
||||
"index.js"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "node bin && bundt",
|
||||
"test": "uvu -r esm test"
|
||||
},
|
||||
"keywords": [
|
||||
"mime",
|
||||
"extension",
|
||||
"mimetype"
|
||||
],
|
||||
"devDependencies": {
|
||||
"bundt": "1.1.1",
|
||||
"esm": "3.2.25",
|
||||
"uvu": "0.5.2"
|
||||
}
|
||||
}
|
127
node_modules/mrmime/readme.md
generated
vendored
Normal file
127
node_modules/mrmime/readme.md
generated
vendored
Normal file
@ -0,0 +1,127 @@
|
||||
<div align="center">
|
||||
<img src="logo.png" alt="mrmime" width="320" />
|
||||
</div>
|
||||
|
||||
<div align="center">
|
||||
<a href="https://npmjs.org/package/mrmime">
|
||||
<img src="https://badgen.now.sh/npm/v/mrmime" alt="version" />
|
||||
</a>
|
||||
<a href="https://github.com/lukeed/mrmime/actions">
|
||||
<img src="https://github.com/lukeed/mrmime/workflows/CI/badge.svg" alt="CI" />
|
||||
</a>
|
||||
<a href="https://npmjs.org/package/mrmime">
|
||||
<img src="https://badgen.now.sh/npm/dm/mrmime" alt="downloads" />
|
||||
</a>
|
||||
<a href="https://packagephobia.now.sh/result?p=mrmime">
|
||||
<img src="https://packagephobia.now.sh/badge?p=mrmime" alt="install size" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div align="center">
|
||||
A tiny (2.8kB) and fast utility for getting a MIME type from an extension or filename
|
||||
</div>
|
||||
|
||||
|
||||
## Features
|
||||
|
||||
* Lightweight – 2.8kB gzip<br>
|
||||
_Only includes standard mime types; all experimental and vendor-specific mimetypes removed._
|
||||
|
||||
* [Performant](#benchmarks)<br>
|
||||
_All lookups are O(1) with minimal processing._
|
||||
|
||||
* Comprehensive Dictionary<br>
|
||||
_Generated from [`mime-db`](https://github.com/jshttp/mime-db), which aggregates the IANA, NGINX, and Apache datasets._
|
||||
|
||||
* Customizable<br>
|
||||
_Exposes the `mimes` dictionary for easy additions or overrides._
|
||||
|
||||
* Supports Native ESM and [Deno](https://deno.land/x/mrmime)<br>
|
||||
_Ships with CommonJS and ESM support!_
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save mrmime
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import { lookup, mimes } from 'mrmime';
|
||||
|
||||
// Get a MIME type
|
||||
// ---
|
||||
lookup('txt'); //=> "text/plain"
|
||||
lookup('.txt'); //=> "text/plain"
|
||||
lookup('a.txt'); //=> "text/plain"
|
||||
|
||||
// Unknown extension
|
||||
// ---
|
||||
lookup('.xyz'); //=> undefined
|
||||
|
||||
// Add extension to dictionary
|
||||
// ---
|
||||
mimes['xyz'] = 'hello/world';
|
||||
lookup('xyz'); //=> "hello/world"
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### lookup(input)
|
||||
Returns: `string` or `undefined`
|
||||
|
||||
#### input
|
||||
Type: `string`
|
||||
|
||||
The extension or filename to lookup.
|
||||
|
||||
> **Important:**
|
||||
> * Any `input` value is cast to string, lowercased, and trimmed.
|
||||
> * If a filename or filepath is provided, only the extension will be used.
|
||||
|
||||
|
||||
## Benchmarks
|
||||
|
||||
> Running on Node v16.8.0
|
||||
|
||||
```
|
||||
Load times:
|
||||
mrmime 0.963ms
|
||||
mime/lite 3.281ms
|
||||
mime 6.751ms
|
||||
|
||||
Benchmark :: plain ("ext")
|
||||
mime x 598,849 ops/sec ±0.28% (94 runs sampled)
|
||||
mime/lite x 536,643 ops/sec ±0.11% (97 runs sampled)
|
||||
mrmime x 835,885 ops/sec ±0.20% (97 runs sampled)
|
||||
|
||||
Benchmark :: leading (".ext")
|
||||
mime x 368,656 ops/sec ±0.19% (99 runs sampled)
|
||||
mime/lite x 368,318 ops/sec ±0.13% (97 runs sampled)
|
||||
mrmime x 533,643 ops/sec ±0.10% (96 runs sampled)
|
||||
|
||||
Benchmark :: filename ("file.ext")
|
||||
mime x 326,907 ops/sec ±0.17% (95 runs sampled)
|
||||
mime/lite x 327,479 ops/sec ±0.12% (98 runs sampled)
|
||||
mrmime x 512,823 ops/sec ±0.12% (99 runs sampled)
|
||||
```
|
||||
|
||||
|
||||
## Credits
|
||||
|
||||
Of course, a thank-you to [`mime`](https://github.com/broofa/mime) serving the community all these years & for being a all-encompassing MIME type library. I've only ever needed lookup/`getType` functionality – and now ESM support – so `mrmime` can only ever support 1/3 of what `mime` offers, at best.
|
||||
|
||||
This would not be possible without the team behind [`mime-db`](https://github.com/jshttp/mime-db), who have painstakingly maintained an amazing database for 7+ years.
|
||||
|
||||
Artwork created by [mintinol](https://www.deviantart.com/mintinol), which I found [here](https://www.deviantart.com/mintinol/art/Mr-Mime-373927920).
|
||||
|
||||
Finally, thanks to [Tim Branyen](https://github.com/tbranyen) for donating the package name :)
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Luke Edwards](https://lukeed.com)
|
Reference in New Issue
Block a user