mime-types-lite 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,385 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ default: () => index_default
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+ var mimeTypesLite = Object.freeze({
27
+ /** Document MIME Types */
28
+ /**
29
+ * MIME Type for ePub files.
30
+ * Example: Digital books are distributed in `.epub` format for eReaders.
31
+ */
32
+ EPUB: "application/epub+zip",
33
+ /**
34
+ * MIME Type for Latex files.
35
+ * Example: Documents written in LaTeX are saved in `.tex` format.
36
+ */
37
+ TEX: "application/x-tex",
38
+ /**
39
+ * MIME Type for Microsoft PowerPoint files (`.ppt` files).
40
+ * Example: Presentations are shared in `.ppt` format.
41
+ */
42
+ PPT: "application/vnd.ms-powerpoint",
43
+ /**
44
+ * MIME Type for Microsoft PowerPoint files in the Office Open XML format (`.pptx` files).
45
+ * Example: Presentations are shared in `.pptx` format.
46
+ */
47
+ PPTX: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
48
+ /**
49
+ * MIME Type for OpenDocument Text files.
50
+ * Example: Documents created in LibreOffice Writer are saved as `.odt` files.
51
+ */
52
+ ODT: "application/vnd.oasis.opendocument.text",
53
+ /**
54
+ * MIME Type for OpenDocument Spreadsheet files.
55
+ * Example: Spreadsheets created in LibreOffice Calc are saved as `.ods` files.
56
+ */
57
+ ODS: "application/vnd.oasis.opendocument.spreadsheet",
58
+ /**
59
+ * MIME Type for Rich Text Format (RTF) files.
60
+ * Example: Word processors can save documents as `.rtf` files for compatibility.
61
+ */
62
+ RTF: "application/rtf",
63
+ /**
64
+ * MIME Type for Microsoft Word documents (`.doc` files).
65
+ * Example: A server serves `.doc` files for download.
66
+ */
67
+ DOC: "application/msword",
68
+ /**
69
+ * MIME Type for Microsoft Word documents in the Office Open XML format (`.docx` files).
70
+ * Example: Exported reports are generated as `.docx` files.
71
+ */
72
+ DOCX: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
73
+ /**
74
+ * MIME Type for Microsoft Excel files (`.xls` files).
75
+ * Example: Financial data is provided in `.xls` format.
76
+ */
77
+ XLS: "application/vnd.ms-excel",
78
+ /**
79
+ * MIME Type for Microsoft Excel spreadsheets in the Office Open XML format (`.xlsx` files).
80
+ * Example: Data analytics tools export `.xlsx` files.
81
+ */
82
+ XLSX: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
83
+ /**
84
+ * MIME Type for PDF files.
85
+ * Example: The application generates an invoice as a `.pdf` file for download.
86
+ */
87
+ PDF: "application/pdf",
88
+ /**
89
+ * MIME Type for Markdown files.
90
+ * Example: Documentation files are stored and processed as `.md`.
91
+ */
92
+ MD: "text/markdown",
93
+ /**
94
+ * MIME Type for Plain Text files.
95
+ * Example: A log file is served as a `.txt` file.
96
+ */
97
+ TXT: "text/plain",
98
+ /**
99
+ * MIME Type for CSV files.
100
+ * Example: Exported reports are downloaded as `.csv` files.
101
+ */
102
+ CSV: "text/csv",
103
+ /** Image MIME Types */
104
+ /**
105
+ * MIME Type for XCF files.
106
+ * Example: Images edited in GIMP are saved in `.xcf` format.
107
+ */
108
+ XCF: "image/x-xcf",
109
+ /**
110
+ * MIME Type for Photoshop files.
111
+ * Example: Graphics are saved and edited in `.psd` format.
112
+ */
113
+ PSD: "image/vnd.adobe.photoshop",
114
+ /**
115
+ * MIME Type for JPEG 2000 images.
116
+ * Example: High-quality images saved in `.jp2` format.
117
+ */
118
+ JP2: "image/jp2",
119
+ /**
120
+ * MIME Type for AVIF images.
121
+ * Example: Modern compressed images saved in `.avif` format.
122
+ */
123
+ AVIF: "image/avif",
124
+ /**
125
+ * MIME Type for HEIC images.
126
+ * Example: Photos captured by modern smartphones are saved as `.heic` files for better compression.
127
+ */
128
+ HEIC: "image/heic",
129
+ /**
130
+ * MIME Type for WebP images.
131
+ * Example: Web servers deliver `.webp` images for optimized website performance.
132
+ */
133
+ WEBP: "image/webp",
134
+ /**
135
+ * MIME Type for JPEG images.
136
+ * Example: User profile pictures are uploaded and served as `.jpeg` images.
137
+ */
138
+ JPG: "image/jpeg",
139
+ /**
140
+ * MIME Type for JPEG images.
141
+ * Example: User profile pictures are uploaded and served as `.jpeg` images.
142
+ */
143
+ JPEG: "image/jpeg",
144
+ /**
145
+ * MIME Type for PNG images.
146
+ * Example: A server serves `.png` files for website logos.
147
+ */
148
+ PNG: "image/png",
149
+ /**
150
+ * MIME Type for ICO images.
151
+ * Example: A server provides a `.ico` file as the favicon for a website.
152
+ */
153
+ ICO: "image/x-icon",
154
+ /**
155
+ * MIME Type for GIF images.
156
+ * Example: A messaging app serves `.gif` files for animated stickers.
157
+ */
158
+ GIF: "image/gif",
159
+ /**
160
+ * MIME Type for BMP images.
161
+ * Example: Specialized imaging software processes `.bmp` files.
162
+ */
163
+ BMP: "image/bmp",
164
+ /**
165
+ * MIME Type for TIFF images.
166
+ * Example: High-quality scanned documents are stored as `.tiff` files.
167
+ */
168
+ TIFF: "image/tiff",
169
+ /**
170
+ * MIME Type for SVG images.
171
+ * Example: A website serves `.svg` files for scalable vector icons.
172
+ */
173
+ SVG: "image/svg+xml",
174
+ /** Video MIME Types */
175
+ /**
176
+ * MIME Type for MKV videos.
177
+ * Example: High-quality video files saved in `.mkv` format.
178
+ */
179
+ MKV: "video/x-matroska",
180
+ /**
181
+ * MIME Type for FLV videos.
182
+ * Example: Flash video files are distributed in `.flv` format.
183
+ */
184
+ FLV: "video/x-flv",
185
+ /**
186
+ * MIME Type for WMV videos.
187
+ * Example: Windows Media videos are saved as `.wmv` files.
188
+ */
189
+ WMV: "video/x-ms-wmv",
190
+ /**
191
+ * MIME Type for QuickTime videos.
192
+ * Example: Apple devices record videos in `.mov` format using QuickTime.
193
+ */
194
+ MOV: "video/quicktime",
195
+ /**
196
+ * MIME Type for WebM videos.
197
+ * Example: Video sharing platforms provide `.webm` files for high-quality playback with smaller file sizes.
198
+ */
199
+ WEBM: "video/webm",
200
+ /**
201
+ * MIME Type for AVI videos.
202
+ * Example: Desktop applications render `.avi` files for video editing.
203
+ */
204
+ AVI: "video/avi",
205
+ /**
206
+ * MIME Type for MPEG videos.
207
+ * Example: Media players support playback of `.mpeg` files.
208
+ */
209
+ MPEG: "video/mpeg",
210
+ /**
211
+ * MIME Type for MP4 videos.
212
+ * Example: Video streaming services serve `.mp4` files for playback.
213
+ */
214
+ MP4: "video/mp4",
215
+ /** Audio MIME Types */
216
+ /**
217
+ * MIME Type for AMR audio files.
218
+ * Example: Voice recordings are stored in `.amr` format.
219
+ */
220
+ AMR: "audio/amr",
221
+ /**
222
+ * MIME Type for MIDI audio files.
223
+ * Example: Musical instrument digital interface data saved as `.midi` files.
224
+ */
225
+ MIDI: "audio/midi",
226
+ /**
227
+ * MIME Type for FLAC audio files.
228
+ * Example: Music enthusiasts use `.flac` files for lossless audio playback.
229
+ */
230
+ FLAC: "audio/flac",
231
+ /**
232
+ * MIME Type for OGG audio files.
233
+ * Example: Streaming platforms deliver `.ogg` files for high-quality audio playback.
234
+ */
235
+ OGG: "audio/ogg",
236
+ /**
237
+ * MIME Type for AAC audio files.
238
+ * Example: Advanced compression audio files are streamed as `.aac`.
239
+ */
240
+ AAC: "audio/aac",
241
+ /**
242
+ * MIME Type for MP3 audio files.
243
+ * Example: Music streaming services provide `.mp3` files for playback.
244
+ */
245
+ MP3: "audio/mpeg",
246
+ /**
247
+ * MIME Type for WAV audio files.
248
+ * Example: A sound editing application processes `.wav` files.
249
+ */
250
+ WAV: "audio/wav",
251
+ /** Archive MIME Types */
252
+ /**
253
+ * MIME Type for TAR archives.
254
+ * Example: Files are compressed in `.tar` format for packaging.
255
+ */
256
+ TAR: "application/x-tar",
257
+ /**
258
+ * MIME Type for GZ archives.
259
+ * Example: Files are compressed with GZIP and saved as `.gz` files.
260
+ */
261
+ GZ: "application/gzip",
262
+ /**
263
+ * MIME Type for 7z compressed archives.
264
+ * Example: Compressed files are shared in `.7z` format.
265
+ */
266
+ SEVEN_ZIP: "application/x-7z-compressed",
267
+ /**
268
+ * MIME Type for ZIP archives.
269
+ * Example: A server offers `.zip` archives for software downloads.
270
+ */
271
+ ZIP: "application/zip",
272
+ /**
273
+ * MIME Type for RAR archives.
274
+ * Example: Compressed files are provided in `.rar` format for download.
275
+ */
276
+ RAR: "application/vnd.rar",
277
+ /**
278
+ * MIME Type for BZ2 archives.
279
+ * Example: Files are compressed with BZIP2 and saved as `.bz2` files.
280
+ */
281
+ BZ2: "application/x-bzip2",
282
+ /** Web-related MIME Types */
283
+ /**
284
+ * MIME Type for `.ics` calendar files.
285
+ * Example: Calendar events are shared in `.ics` format for scheduling.
286
+ */
287
+ ICS: "text/calendar",
288
+ /**
289
+ * MIME Type for `.atom` feed files.
290
+ * Example: Websites syndicate content in `.atom` format for RSS readers.
291
+ */
292
+ ATOM: "application/atom+xml",
293
+ /**
294
+ * MIME Type for `.rss` feed files.
295
+ * Example: Websites syndicate content in `.rss` format for RSS readers.
296
+ */
297
+ RSS: "application/rss+xml",
298
+ /**
299
+ * MIME Type for `.wasm` WebAssembly files.
300
+ * Example: Servers deliver `.wasm` files to execute WebAssembly code in browsers.
301
+ */
302
+ WASM: "application/wasm",
303
+ /**
304
+ * MIME Type for `.csv` with semicolon separator.
305
+ * Example: Data files saved as `.csv` with a semicolon instead of a comma as a separator.
306
+ */
307
+ CSV_SEMICOLON: "text/csv+semicolon",
308
+ /**
309
+ * MIME Type for YAML files.
310
+ * Example: Configuration files for web applications are stored as `.yaml` or `.yml`.
311
+ */
312
+ YAML: "application/x-yaml",
313
+ /**
314
+ * MIME Type for GraphQL query payloads.
315
+ * Example: GraphQL APIs handle `.graphql` files for client-server communication.
316
+ */
317
+ GRAPHQL: "application/graphql",
318
+ /**
319
+ * MIME Type for URL-encoded form data.
320
+ * Example: Web forms send data as URL-encoded strings.
321
+ */
322
+ URL_ENCODED: "application/x-www-form-urlencoded",
323
+ /**
324
+ * MIME Type for JSON data.
325
+ * Example: REST APIs send data responses as JSON objects.
326
+ */
327
+ JSON: "application/json",
328
+ /**
329
+ * MIME Type for XML data.
330
+ * Example: SOAP APIs exchange data using `.xml` payloads.
331
+ */
332
+ XML: "application/xml",
333
+ /**
334
+ * MIME Type for JavaScript files.
335
+ * Example: A server delivers a `.js` file requested by a web browser.
336
+ */
337
+ JS: "application/javascript",
338
+ /**
339
+ * MIME Type for CSS files.
340
+ * Example: A server serves `.css` files to style a web page.
341
+ */
342
+ CSS: "text/css",
343
+ /**
344
+ * MIME Type for HTML files.
345
+ * Example: A server sends an `.html` file as a response to a browser request.
346
+ */
347
+ HTML: "text/html",
348
+ /** Font MIME Types */
349
+ /**
350
+ * MIME Type for Web Open Font Format (WOFF) files.
351
+ * Example: Websites load custom fonts using `.woff` files.
352
+ */
353
+ WOFF: "font/woff",
354
+ /**
355
+ * MIME Type for Web Open Font Format 2 (WOFF2) files.
356
+ * Example: Modern websites use `.woff2` files for optimized font delivery.
357
+ */
358
+ WOFF2: "font/woff2",
359
+ /**
360
+ * MIME Type for TrueType font files.
361
+ * Example: Fonts are shared in `.ttf` format for compatibility across systems.
362
+ */
363
+ TTF: "font/ttf",
364
+ /**
365
+ * MIME Type for OpenType font files.
366
+ * Example: Fonts are shared in `.otf` format for enhanced capabilities.
367
+ */
368
+ OTF: "font/otf"
369
+ });
370
+ var index_default = mimeTypesLite;
371
+ /**
372
+ * @fileoverview Defines the various MIME types used in the application.
373
+ * This module exports an object that contains the different MIME types
374
+ * the application can handle. These MIME types are used to identify the format of data being processed or served.
375
+ *
376
+ * @module constants/mimeTypesLite
377
+ * @version 1.0.0
378
+ * @license CC BY-NC-ND 4.0
379
+ *
380
+ * @contact Mohammad Montasim -Al- Mamun Shuvo
381
+ * @created 2025-01-28
382
+ * @contactEmail montasimmamun@gmail.com
383
+ * @contactGithub https://github.com/montasim
384
+ */
385
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "sourcesContent": ["/**\r\n * @fileoverview Defines the various MIME types used in the application.\r\n * This module exports an object that contains the different MIME types\r\n * the application can handle. These MIME types are used to identify the format of data being processed or served.\r\n *\r\n * @module constants/mimeTypesLite\r\n * @version 1.0.0\r\n * @license CC BY-NC-ND 4.0\r\n *\r\n * @contact Mohammad Montasim -Al- Mamun Shuvo\r\n * @created 2025-01-28\r\n * @contactEmail montasimmamun@gmail.com\r\n * @contactGithub https://github.com/montasim\r\n */\r\n\r\n/**\r\n * An object representing different MIME types.\r\n * @enum {string}\r\n */\r\nconst mimeTypesLite = Object.freeze({\r\n /** Document MIME Types */\r\n\r\n /**\r\n * MIME Type for ePub files.\r\n * Example: Digital books are distributed in `.epub` format for eReaders.\r\n */\r\n EPUB: 'application/epub+zip' as const,\r\n\r\n /**\r\n * MIME Type for Latex files.\r\n * Example: Documents written in LaTeX are saved in `.tex` format.\r\n */\r\n TEX: 'application/x-tex' as const,\r\n\r\n /**\r\n * MIME Type for Microsoft PowerPoint files (`.ppt` files).\r\n * Example: Presentations are shared in `.ppt` format.\r\n */\r\n PPT: 'application/vnd.ms-powerpoint' as const,\r\n\r\n /**\r\n * MIME Type for Microsoft PowerPoint files in the Office Open XML format (`.pptx` files).\r\n * Example: Presentations are shared in `.pptx` format.\r\n */\r\n PPTX: 'application/vnd.openxmlformats-officedocument.presentationml.presentation' as const,\r\n\r\n /**\r\n * MIME Type for OpenDocument Text files.\r\n * Example: Documents created in LibreOffice Writer are saved as `.odt` files.\r\n */\r\n ODT: 'application/vnd.oasis.opendocument.text' as const,\r\n\r\n /**\r\n * MIME Type for OpenDocument Spreadsheet files.\r\n * Example: Spreadsheets created in LibreOffice Calc are saved as `.ods` files.\r\n */\r\n ODS: 'application/vnd.oasis.opendocument.spreadsheet' as const,\r\n\r\n /**\r\n * MIME Type for Rich Text Format (RTF) files.\r\n * Example: Word processors can save documents as `.rtf` files for compatibility.\r\n */\r\n RTF: 'application/rtf' as const,\r\n\r\n /**\r\n * MIME Type for Microsoft Word documents (`.doc` files).\r\n * Example: A server serves `.doc` files for download.\r\n */\r\n DOC: 'application/msword' as const,\r\n\r\n /**\r\n * MIME Type for Microsoft Word documents in the Office Open XML format (`.docx` files).\r\n * Example: Exported reports are generated as `.docx` files.\r\n */\r\n DOCX: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' as const,\r\n\r\n /**\r\n * MIME Type for Microsoft Excel files (`.xls` files).\r\n * Example: Financial data is provided in `.xls` format.\r\n */\r\n XLS: 'application/vnd.ms-excel' as const,\r\n\r\n /**\r\n * MIME Type for Microsoft Excel spreadsheets in the Office Open XML format (`.xlsx` files).\r\n * Example: Data analytics tools export `.xlsx` files.\r\n */\r\n XLSX: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' as const,\r\n\r\n /**\r\n * MIME Type for PDF files.\r\n * Example: The application generates an invoice as a `.pdf` file for download.\r\n */\r\n PDF: 'application/pdf' as const,\r\n\r\n /**\r\n * MIME Type for Markdown files.\r\n * Example: Documentation files are stored and processed as `.md`.\r\n */\r\n MD: 'text/markdown' as const,\r\n\r\n /**\r\n * MIME Type for Plain Text files.\r\n * Example: A log file is served as a `.txt` file.\r\n */\r\n TXT: 'text/plain' as const,\r\n\r\n /**\r\n * MIME Type for CSV files.\r\n * Example: Exported reports are downloaded as `.csv` files.\r\n */\r\n CSV: 'text/csv' as const,\r\n\r\n /** Image MIME Types */\r\n\r\n /**\r\n * MIME Type for XCF files.\r\n * Example: Images edited in GIMP are saved in `.xcf` format.\r\n */\r\n XCF: 'image/x-xcf' as const,\r\n\r\n /**\r\n * MIME Type for Photoshop files.\r\n * Example: Graphics are saved and edited in `.psd` format.\r\n */\r\n PSD: 'image/vnd.adobe.photoshop' as const,\r\n\r\n /**\r\n * MIME Type for JPEG 2000 images.\r\n * Example: High-quality images saved in `.jp2` format.\r\n */\r\n JP2: 'image/jp2' as const,\r\n\r\n /**\r\n * MIME Type for AVIF images.\r\n * Example: Modern compressed images saved in `.avif` format.\r\n */\r\n AVIF: 'image/avif' as const,\r\n\r\n /**\r\n * MIME Type for HEIC images.\r\n * Example: Photos captured by modern smartphones are saved as `.heic` files for better compression.\r\n */\r\n HEIC: 'image/heic' as const,\r\n\r\n /**\r\n * MIME Type for WebP images.\r\n * Example: Web servers deliver `.webp` images for optimized website performance.\r\n */\r\n WEBP: 'image/webp' as const,\r\n\r\n /**\r\n * MIME Type for JPEG images.\r\n * Example: User profile pictures are uploaded and served as `.jpeg` images.\r\n */\r\n JPG: 'image/jpeg' as const,\r\n\r\n /**\r\n * MIME Type for JPEG images.\r\n * Example: User profile pictures are uploaded and served as `.jpeg` images.\r\n */\r\n JPEG: 'image/jpeg' as const,\r\n\r\n /**\r\n * MIME Type for PNG images.\r\n * Example: A server serves `.png` files for website logos.\r\n */\r\n PNG: 'image/png' as const,\r\n\r\n /**\r\n * MIME Type for ICO images.\r\n * Example: A server provides a `.ico` file as the favicon for a website.\r\n */\r\n ICO: 'image/x-icon' as const,\r\n\r\n /**\r\n * MIME Type for GIF images.\r\n * Example: A messaging app serves `.gif` files for animated stickers.\r\n */\r\n GIF: 'image/gif' as const,\r\n\r\n /**\r\n * MIME Type for BMP images.\r\n * Example: Specialized imaging software processes `.bmp` files.\r\n */\r\n BMP: 'image/bmp' as const,\r\n\r\n /**\r\n * MIME Type for TIFF images.\r\n * Example: High-quality scanned documents are stored as `.tiff` files.\r\n */\r\n TIFF: 'image/tiff' as const,\r\n\r\n /**\r\n * MIME Type for SVG images.\r\n * Example: A website serves `.svg` files for scalable vector icons.\r\n */\r\n SVG: 'image/svg+xml' as const,\r\n\r\n /** Video MIME Types */\r\n\r\n /**\r\n * MIME Type for MKV videos.\r\n * Example: High-quality video files saved in `.mkv` format.\r\n */\r\n MKV: 'video/x-matroska' as const,\r\n\r\n /**\r\n * MIME Type for FLV videos.\r\n * Example: Flash video files are distributed in `.flv` format.\r\n */\r\n FLV: 'video/x-flv' as const,\r\n\r\n /**\r\n * MIME Type for WMV videos.\r\n * Example: Windows Media videos are saved as `.wmv` files.\r\n */\r\n WMV: 'video/x-ms-wmv' as const,\r\n\r\n /**\r\n * MIME Type for QuickTime videos.\r\n * Example: Apple devices record videos in `.mov` format using QuickTime.\r\n */\r\n MOV: 'video/quicktime' as const,\r\n\r\n /**\r\n * MIME Type for WebM videos.\r\n * Example: Video sharing platforms provide `.webm` files for high-quality playback with smaller file sizes.\r\n */\r\n WEBM: 'video/webm' as const,\r\n\r\n /**\r\n * MIME Type for AVI videos.\r\n * Example: Desktop applications render `.avi` files for video editing.\r\n */\r\n AVI: 'video/avi' as const,\r\n\r\n /**\r\n * MIME Type for MPEG videos.\r\n * Example: Media players support playback of `.mpeg` files.\r\n */\r\n MPEG: 'video/mpeg' as const,\r\n\r\n /**\r\n * MIME Type for MP4 videos.\r\n * Example: Video streaming services serve `.mp4` files for playback.\r\n */\r\n MP4: 'video/mp4' as const,\r\n\r\n /** Audio MIME Types */\r\n\r\n /**\r\n * MIME Type for AMR audio files.\r\n * Example: Voice recordings are stored in `.amr` format.\r\n */\r\n AMR: 'audio/amr' as const,\r\n\r\n /**\r\n * MIME Type for MIDI audio files.\r\n * Example: Musical instrument digital interface data saved as `.midi` files.\r\n */\r\n MIDI: 'audio/midi' as const,\r\n\r\n /**\r\n * MIME Type for FLAC audio files.\r\n * Example: Music enthusiasts use `.flac` files for lossless audio playback.\r\n */\r\n FLAC: 'audio/flac' as const,\r\n\r\n /**\r\n * MIME Type for OGG audio files.\r\n * Example: Streaming platforms deliver `.ogg` files for high-quality audio playback.\r\n */\r\n OGG: 'audio/ogg' as const,\r\n\r\n /**\r\n * MIME Type for AAC audio files.\r\n * Example: Advanced compression audio files are streamed as `.aac`.\r\n */\r\n AAC: 'audio/aac' as const,\r\n\r\n /**\r\n * MIME Type for MP3 audio files.\r\n * Example: Music streaming services provide `.mp3` files for playback.\r\n */\r\n MP3: 'audio/mpeg' as const,\r\n\r\n /**\r\n * MIME Type for WAV audio files.\r\n * Example: A sound editing application processes `.wav` files.\r\n */\r\n WAV: 'audio/wav' as const,\r\n\r\n /** Archive MIME Types */\r\n\r\n /**\r\n * MIME Type for TAR archives.\r\n * Example: Files are compressed in `.tar` format for packaging.\r\n */\r\n TAR: 'application/x-tar' as const,\r\n\r\n /**\r\n * MIME Type for GZ archives.\r\n * Example: Files are compressed with GZIP and saved as `.gz` files.\r\n */\r\n GZ: 'application/gzip' as const,\r\n\r\n /**\r\n * MIME Type for 7z compressed archives.\r\n * Example: Compressed files are shared in `.7z` format.\r\n */\r\n SEVEN_ZIP: 'application/x-7z-compressed' as const,\r\n\r\n /**\r\n * MIME Type for ZIP archives.\r\n * Example: A server offers `.zip` archives for software downloads.\r\n */\r\n ZIP: 'application/zip' as const,\r\n\r\n /**\r\n * MIME Type for RAR archives.\r\n * Example: Compressed files are provided in `.rar` format for download.\r\n */\r\n RAR: 'application/vnd.rar' as const,\r\n\r\n /**\r\n * MIME Type for BZ2 archives.\r\n * Example: Files are compressed with BZIP2 and saved as `.bz2` files.\r\n */\r\n BZ2: 'application/x-bzip2' as const,\r\n\r\n /** Web-related MIME Types */\r\n\r\n /**\r\n * MIME Type for `.ics` calendar files.\r\n * Example: Calendar events are shared in `.ics` format for scheduling.\r\n */\r\n ICS: 'text/calendar' as const,\r\n\r\n /**\r\n * MIME Type for `.atom` feed files.\r\n * Example: Websites syndicate content in `.atom` format for RSS readers.\r\n */\r\n ATOM: 'application/atom+xml' as const,\r\n\r\n /**\r\n * MIME Type for `.rss` feed files.\r\n * Example: Websites syndicate content in `.rss` format for RSS readers.\r\n */\r\n RSS: 'application/rss+xml' as const,\r\n\r\n /**\r\n * MIME Type for `.wasm` WebAssembly files.\r\n * Example: Servers deliver `.wasm` files to execute WebAssembly code in browsers.\r\n */\r\n WASM: 'application/wasm' as const,\r\n\r\n /**\r\n * MIME Type for `.csv` with semicolon separator.\r\n * Example: Data files saved as `.csv` with a semicolon instead of a comma as a separator.\r\n */\r\n CSV_SEMICOLON: 'text/csv+semicolon' as const,\r\n\r\n /**\r\n * MIME Type for YAML files.\r\n * Example: Configuration files for web applications are stored as `.yaml` or `.yml`.\r\n */\r\n YAML: 'application/x-yaml' as const,\r\n\r\n /**\r\n * MIME Type for GraphQL query payloads.\r\n * Example: GraphQL APIs handle `.graphql` files for client-server communication.\r\n */\r\n GRAPHQL: 'application/graphql' as const,\r\n\r\n /**\r\n * MIME Type for URL-encoded form data.\r\n * Example: Web forms send data as URL-encoded strings.\r\n */\r\n URL_ENCODED: 'application/x-www-form-urlencoded' as const,\r\n\r\n /**\r\n * MIME Type for JSON data.\r\n * Example: REST APIs send data responses as JSON objects.\r\n */\r\n JSON: 'application/json' as const,\r\n\r\n /**\r\n * MIME Type for XML data.\r\n * Example: SOAP APIs exchange data using `.xml` payloads.\r\n */\r\n XML: 'application/xml' as const,\r\n\r\n /**\r\n * MIME Type for JavaScript files.\r\n * Example: A server delivers a `.js` file requested by a web browser.\r\n */\r\n JS: 'application/javascript' as const,\r\n\r\n /**\r\n * MIME Type for CSS files.\r\n * Example: A server serves `.css` files to style a web page.\r\n */\r\n CSS: 'text/css' as const,\r\n\r\n /**\r\n * MIME Type for HTML files.\r\n * Example: A server sends an `.html` file as a response to a browser request.\r\n */\r\n HTML: 'text/html' as const,\r\n\r\n /** Font MIME Types */\r\n\r\n /**\r\n * MIME Type for Web Open Font Format (WOFF) files.\r\n * Example: Websites load custom fonts using `.woff` files.\r\n */\r\n WOFF: 'font/woff' as const,\r\n\r\n /**\r\n * MIME Type for Web Open Font Format 2 (WOFF2) files.\r\n * Example: Modern websites use `.woff2` files for optimized font delivery.\r\n */\r\n WOFF2: 'font/woff2' as const,\r\n\r\n /**\r\n * MIME Type for TrueType font files.\r\n * Example: Fonts are shared in `.ttf` format for compatibility across systems.\r\n */\r\n TTF: 'font/ttf' as const,\r\n\r\n /**\r\n * MIME Type for OpenType font files.\r\n * Example: Fonts are shared in `.otf` format for enhanced capabilities.\r\n */\r\n OTF: 'font/otf' as const,\r\n});\r\n\r\n/**\r\n * Type definition for available MIME types.\r\n */\r\nexport type MimeType = keyof typeof mimeTypesLite;\r\n\r\nexport default mimeTypesLite;\r\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBA,IAAM,gBAAgB,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOhC,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,EAMN,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,EAML,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,EAML,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,EAMN,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,EAML,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,EAML,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,EAML,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,EAML,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,EAMN,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,EAML,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,EAMN,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,EAML,IAAI;AA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nProperty,__export=(e,o)=>{for(var i in o)__defProp(e,i,{get:o[i],enumerable:!0})},__copyProps=(e,o,i,a)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let p of __getOwnPropNames(o))__hasOwnProp.call(e,p)||p===i||__defProp(e,p,{get:()=>o[p],enumerable:!(a=__getOwnPropDesc(o,p))||a.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 mimeTypesLite=Object.freeze({EPUB:"application/epub+zip",TEX:"application/x-tex",PPT:"application/vnd.ms-powerpoint",PPTX:"application/vnd.openxmlformats-officedocument.presentationml.presentation",ODT:"application/vnd.oasis.opendocument.text",ODS:"application/vnd.oasis.opendocument.spreadsheet",RTF:"application/rtf",DOC:"application/msword",DOCX:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",XLS:"application/vnd.ms-excel",XLSX:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PDF:"application/pdf",MD:"text/markdown",TXT:"text/plain",CSV:"text/csv",XCF:"image/x-xcf",PSD:"image/vnd.adobe.photoshop",JP2:"image/jp2",AVIF:"image/avif",HEIC:"image/heic",WEBP:"image/webp",JPG:"image/jpeg",JPEG:"image/jpeg",PNG:"image/png",ICO:"image/x-icon",GIF:"image/gif",BMP:"image/bmp",TIFF:"image/tiff",SVG:"image/svg+xml",MKV:"video/x-matroska",FLV:"video/x-flv",WMV:"video/x-ms-wmv",MOV:"video/quicktime",WEBM:"video/webm",AVI:"video/avi",MPEG:"video/mpeg",MP4:"video/mp4",AMR:"audio/amr",MIDI:"audio/midi",FLAC:"audio/flac",OGG:"audio/ogg",AAC:"audio/aac",MP3:"audio/mpeg",WAV:"audio/wav",TAR:"application/x-tar",GZ:"application/gzip",SEVEN_ZIP:"application/x-7z-compressed",ZIP:"application/zip",RAR:"application/vnd.rar",BZ2:"application/x-bzip2",ICS:"text/calendar",ATOM:"application/atom+xml",RSS:"application/rss+xml",WASM:"application/wasm",CSV_SEMICOLON:"text/csv+semicolon",YAML:"application/x-yaml",GRAPHQL:"application/graphql",URL_ENCODED:"application/x-www-form-urlencoded",JSON:"application/json",XML:"application/xml",JS:"application/javascript",CSS:"text/css",HTML:"text/html",WOFF:"font/woff",WOFF2:"font/woff2",TTF:"font/ttf",OTF:"font/otf"}),index_default=mimeTypesLite;
@@ -365,3 +365,4 @@ declare const mimeTypesLite: Readonly<{
365
365
  */
366
366
  export type MimeType = keyof typeof mimeTypesLite;
367
367
  export {};
368
+ //# sourceMappingURL=index.cjs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.d.ts","sourceRoot":"","sources":["../../src/index.cjs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;GAGG;AACH,QAAA,MAAM,aAAa;IACf,0BAA0B;IAE1B;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH,uBAAuB;IAEvB;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH,uBAAuB;IAEvB;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH,uBAAuB;IAEvB;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH,yBAAyB;IAEzB;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH,6BAA6B;IAE7B;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH,sBAAsB;IAEtB;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;EAEL,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,aAAa,CAAC"}
@@ -365,3 +365,4 @@ declare const mimeTypesLite: Readonly<{
365
365
  */
366
366
  export type MimeType = keyof typeof mimeTypesLite;
367
367
  export default mimeTypesLite;
368
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;GAGG;AACH,QAAA,MAAM,aAAa;IACf,0BAA0B;IAE1B;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH,uBAAuB;IAEvB;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IA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