content-types-lite
Version:
A collection of common CONTENT types for use in applications.
1 lines • 2.03 kB
JavaScript
"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,t)=>{for(var p in t)__defProp(e,p,{get:t[p],enumerable:!0})},__copyProps=(e,t,p,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of __getOwnPropNames(t))__hasOwnProp.call(e,a)||a===p||__defProp(e,a,{get:()=>t[a],enumerable:!(o=__getOwnPropDesc(t,a))||o.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),index_exports={};__export(index_exports,{default:()=>index_default}),module.exports=__toCommonJS(index_exports);var contentTypesLite=Object.freeze({PLAIN_TEXT:"text/plain",HTML:"text/html",CSS:"text/css",CSV:"text/csv",XML:"text/xml",MARKDOWN:"text/markdown",RICH_TEXT:"text/richtext",JSON:"application/json",XML_APP:"application/xml",YAML:"application/x-yaml",FORM_URLENCODED:"application/x-www-form-urlencoded",NDJSON:"application/x-ndjson",MSGPACK:"application/x-msgpack",PROTOBUF:"application/x-protobuf",MULTIPART_FORM_DATA:"multipart/form-data",MULTIPART_MIXED:"multipart/mixed",MULTIPART_ALTERNATIVE:"multipart/alternative",MULTIPART_DIGEST:"multipart/digest",MULTIPART_RELATED:"multipart/related",MULTIPART_SIGNED:"multipart/signed",MULTIPART_ENCRYPTED:"multipart/encrypted",OCTET_STREAM:"application/octet-stream",PDF:"application/pdf",ZIP:"application/zip",GZIP:"application/gzip",MSWORD:"application/msword",DOCX:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",EXCEL:"application/vnd.ms-excel",XLSX:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",POWERPOINT:"application/vnd.ms-powerpoint",PPTX:"application/vnd.openxmlformats-officedocument.presentationml.presentation",GIF:"image/gif",PNG:"image/png",JPEG:"image/jpeg",WEBP:"image/webp",SVG:"image/svg+xml",HEIF:"image/heif",AVIF:"image/avif",EVENT_STREAM:"text/event-stream",TAR:"application/x-tar",BZIP2:"application/x-bzip2"}),index_default=contentTypesLite;