mime-types-lite 1.6.1 → 1.7.0
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.
- package/CHANGELOG.md +34 -0
- package/README.md +275 -240
- package/dist/{esm/index.cjs.d.ts → index.d.mts} +3 -17
- package/dist/{esm/index.d.ts → index.d.ts} +3 -17
- package/dist/{cjs/index.cjs → index.js} +0 -15
- package/dist/{esm/index.js → index.mjs} +0 -15
- package/package.json +42 -95
- package/dist/cjs/index.cjs.map +0 -7
- package/dist/cjs/index.min.cjs +0 -1
- package/dist/esm/index.cjs.d.ts.map +0 -1
- package/dist/esm/index.cjs.js +0 -364
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/index.js.map +0 -7
- package/dist/esm/index.min.js +0 -1
- package/dist/esm/tsconfig.tsbuildinfo +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
+
|
|
5
|
+
## 1.7.0 (2025-07-25)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* remove local dependency with npm ([766a3b2](https://github.com/montasim/mime-types-lite/commit/766a3b2748ebe5168f6d6df6f13faf9b0e370370))
|
|
11
|
+
|
|
12
|
+
### 1.6.2 (2025-07-25)
|
|
13
|
+
|
|
14
|
+
### 0.0.3 (2025-07-25)
|
|
15
|
+
|
|
16
|
+
### 0.0.3 (2025-07-25)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Code Refactoring
|
|
20
|
+
|
|
21
|
+
* decrease bundle size ([a7e8a3f](https://github.com/montasim/client-parser/commit/a7e8a3f11331b311100b6ee5f33f5135da0d31a5))
|
|
22
|
+
|
|
23
|
+
### 0.0.2 (2025-07-24)
|
|
24
|
+
|
|
25
|
+
### 0.0.17 (2025-07-24)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* initiate boilerplate ([fdc7c8f](https://github.com/montasim/client-parser/commit/fdc7c8feae49cbf3094ac1213b7c21b972a9ab4a))
|
|
31
|
+
|
|
32
|
+
# Changelog
|
|
33
|
+
|
|
34
|
+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
package/README.md
CHANGED
|
@@ -1,240 +1,275 @@
|
|
|
1
|
-
# mime-types-lite
|
|
2
|
-
|
|
3
|
-
<!-- repository summary badges start -->
|
|
4
|
-
<div>
|
|
5
|
-
<img alt="NPM Version" src="https://badgen.net/npm/v/mime-types-lite?label=version&labelColor=EB008B&color=00B8B5">
|
|
6
|
-
<img alt="NPM Downloads" src="https://badgen.net/npm/dm/mime-types-lite?label=downloads&labelColor=EB008B&color=00B8B5">
|
|
7
|
-
<img alt="NPM Package" src="https://badgen.net/npm/license/mime-types-lite?label=license&labelColor=EB008B&color=00B8B5">
|
|
8
|
-
</div>
|
|
9
|
-
<!-- repository summary badges end -->
|
|
10
|
-
|
|
11
|
-
The [mime-types-lite](https://www.npmjs.com/package/mime-types-lite) is a lightweight and comprehensive utility providing standardized MIME types for applications. It simplifies the handling of file format identification by offering predefined constants, ensuring clarity and consistency in file processing and serving.
|
|
12
|
-
|
|
13
|
-
## Table of Contents
|
|
14
|
-
|
|
15
|
-
- [Key Features](#key-features)
|
|
16
|
-
- [Installation](#installation)
|
|
17
|
-
- [Usage](#usage)
|
|
18
|
-
- [Supported MIME Types](#supported-mime-types)
|
|
19
|
-
- [License](#license)
|
|
20
|
-
- [Acknowledgments](#acknowledgments)
|
|
21
|
-
- [FAQs](#faqs)
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
## Key Features
|
|
26
|
-
|
|
27
|
-
1. **Predefined MIME Types:** Provides a comprehensive set of MIME types for easy reference.
|
|
28
|
-
2. **TypeScript Support:** Includes strong type definitions for enhanced code safety and developer experience.
|
|
29
|
-
3. **Immutable Constants:** Ensures MIME types cannot be modified, preventing unintended changes.
|
|
30
|
-
4. **Lightweight & Efficient:** Minimal footprint with high performance.
|
|
31
|
-
5. **Easy Integration:** Seamlessly integrates with any Node.js or TypeScript-based project.
|
|
32
|
-
|
|
33
|
-
---
|
|
34
|
-
|
|
35
|
-
## Installation
|
|
36
|
-
|
|
37
|
-
To install the package, run the following command:
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
npm install mime-types-lite
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
- `
|
|
109
|
-
- `
|
|
110
|
-
- `
|
|
111
|
-
- `
|
|
112
|
-
- `
|
|
113
|
-
- `
|
|
114
|
-
- `
|
|
115
|
-
- `
|
|
116
|
-
- `
|
|
117
|
-
- `
|
|
118
|
-
- `
|
|
119
|
-
- `
|
|
120
|
-
- `
|
|
121
|
-
- `
|
|
122
|
-
|
|
123
|
-
### **
|
|
124
|
-
|
|
125
|
-
- `
|
|
126
|
-
- `
|
|
127
|
-
- `
|
|
128
|
-
- `
|
|
129
|
-
- `
|
|
130
|
-
- `
|
|
131
|
-
- `
|
|
132
|
-
- `
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
- `
|
|
137
|
-
- `
|
|
138
|
-
- `
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
- `
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
- `
|
|
147
|
-
- `
|
|
148
|
-
- `
|
|
149
|
-
- `
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
- `
|
|
156
|
-
- `
|
|
157
|
-
- `
|
|
158
|
-
- `
|
|
159
|
-
- `
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
- `
|
|
164
|
-
- `
|
|
165
|
-
- `
|
|
166
|
-
- `
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
-
|
|
171
|
-
|
|
172
|
-
- `
|
|
173
|
-
- `
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
-
|
|
190
|
-
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
1
|
+
# mime-types-lite
|
|
2
|
+
|
|
3
|
+
<!-- repository summary badges start -->
|
|
4
|
+
<div>
|
|
5
|
+
<img alt="NPM Version" src="https://badgen.net/npm/v/mime-types-lite?label=version&labelColor=EB008B&color=00B8B5">
|
|
6
|
+
<img alt="NPM Downloads" src="https://badgen.net/npm/dm/mime-types-lite?label=downloads&labelColor=EB008B&color=00B8B5">
|
|
7
|
+
<img alt="NPM Package" src="https://badgen.net/npm/license/mime-types-lite?label=license&labelColor=EB008B&color=00B8B5">
|
|
8
|
+
</div>
|
|
9
|
+
<!-- repository summary badges end -->
|
|
10
|
+
|
|
11
|
+
The [mime-types-lite](https://www.npmjs.com/package/mime-types-lite) is a lightweight and comprehensive utility providing standardized MIME types for applications. It simplifies the handling of file format identification by offering predefined constants, ensuring clarity and consistency in file processing and serving.
|
|
12
|
+
|
|
13
|
+
## Table of Contents
|
|
14
|
+
|
|
15
|
+
- [Key Features](#key-features)
|
|
16
|
+
- [Installation](#installation)
|
|
17
|
+
- [Usage](#usage)
|
|
18
|
+
- [Supported MIME Types](#supported-mime-types)
|
|
19
|
+
- [License](#license)
|
|
20
|
+
- [Acknowledgments](#acknowledgments)
|
|
21
|
+
- [FAQs](#faqs)
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Key Features
|
|
26
|
+
|
|
27
|
+
1. **Predefined MIME Types:** Provides a comprehensive set of MIME types for easy reference.
|
|
28
|
+
2. **TypeScript Support:** Includes strong type definitions for enhanced code safety and developer experience.
|
|
29
|
+
3. **Immutable Constants:** Ensures MIME types cannot be modified, preventing unintended changes.
|
|
30
|
+
4. **Lightweight & Efficient:** Minimal footprint with high performance.
|
|
31
|
+
5. **Easy Integration:** Seamlessly integrates with any Node.js or TypeScript-based project.
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Installation
|
|
36
|
+
|
|
37
|
+
To install the package, run the following command:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
npm install mime-types-lite
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
or
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
yarn add mime-types-lite
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
or
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
pnpm add mime-types-lite
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
or
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
bun add mime-types-lite
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Usage
|
|
64
|
+
|
|
65
|
+
### JavaScript CommonJS Example
|
|
66
|
+
|
|
67
|
+
```javascript
|
|
68
|
+
const mimeTypesLite = require('mime-types-lite');
|
|
69
|
+
|
|
70
|
+
console.log(mimeTypesLite.JSON); // Outputs: application/json
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### JavaScript ESM Example
|
|
74
|
+
|
|
75
|
+
```javascript
|
|
76
|
+
import mimeTypesLite from 'mime-types-lite';
|
|
77
|
+
|
|
78
|
+
console.log(mimeTypesLite.JSON); // Outputs: application/json
|
|
79
|
+
|
|
80
|
+
// TypeScript example:
|
|
81
|
+
import mimeTypesLite, { MimeType } from 'mime-types-lite';
|
|
82
|
+
|
|
83
|
+
const fileType = 'JSON';
|
|
84
|
+
console.log(mimeTypesLite[fileType]); // Outputs: application/json
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### TypeScript ESM Example
|
|
88
|
+
|
|
89
|
+
```typescript
|
|
90
|
+
import mimeTypesLite from 'mime-types-lite';
|
|
91
|
+
|
|
92
|
+
console.log(mimeTypesLite.JSON); // Outputs: application/json
|
|
93
|
+
|
|
94
|
+
// TypeScript example:
|
|
95
|
+
import mimeTypesLite, { MimeType } from 'mime-types-lite';
|
|
96
|
+
|
|
97
|
+
const fileType: MimeType = 'JSON';
|
|
98
|
+
console.log(mimeTypesLite[fileType]); // Outputs: application/json
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Supported MIME Types
|
|
104
|
+
|
|
105
|
+
### **Document MIME Types**
|
|
106
|
+
|
|
107
|
+
- `EPUB`: `application/epub+zip`
|
|
108
|
+
- `TEX`: `application/x-tex`
|
|
109
|
+
- `PPT`: `application/vnd.ms-powerpoint`
|
|
110
|
+
- `PPTX`: `application/vnd.openxmlformats-officedocument.presentationml.presentation`
|
|
111
|
+
- `ODT`: `application/vnd.oasis.opendocument.text`
|
|
112
|
+
- `ODS`: `application/vnd.oasis.opendocument.spreadsheet`
|
|
113
|
+
- `RTF`: `application/rtf`
|
|
114
|
+
- `DOC`: `application/msword`
|
|
115
|
+
- `DOCX`: `application/vnd.openxmlformats-officedocument.wordprocessingml.document`
|
|
116
|
+
- `XLS`: `application/vnd.ms-excel`
|
|
117
|
+
- `XLSX`: `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`
|
|
118
|
+
- `PDF`: `application/pdf`
|
|
119
|
+
- `MD`: `text/markdown`
|
|
120
|
+
- `TXT`: `text/plain`
|
|
121
|
+
- `CSV`: `text/csv`
|
|
122
|
+
|
|
123
|
+
### **Image MIME Types**
|
|
124
|
+
|
|
125
|
+
- `XCF`: `image/x-xcf`
|
|
126
|
+
- `PSD`: `image/vnd.adobe.photoshop`
|
|
127
|
+
- `JP2`: `image/jp2`
|
|
128
|
+
- `AVIF`: `image/avif`
|
|
129
|
+
- `HEIC`: `image/heic`
|
|
130
|
+
- `WEBP`: `image/webp`
|
|
131
|
+
- `JPG`: `image/jpeg`
|
|
132
|
+
- `JPEG`: `image/jpeg`
|
|
133
|
+
- `PNG`: `image/png`
|
|
134
|
+
- `ICO`: `image/x-icon`
|
|
135
|
+
- `GIF`: `image/gif`
|
|
136
|
+
- `BMP`: `image/bmp`
|
|
137
|
+
- `TIFF`: `image/tiff`
|
|
138
|
+
- `SVG`: `image/svg+xml`
|
|
139
|
+
|
|
140
|
+
### **Video MIME Types**
|
|
141
|
+
|
|
142
|
+
- `MKV`: `video/x-matroska`
|
|
143
|
+
- `FLV`: `video/x-flv`
|
|
144
|
+
- `WMV`: `video/x-ms-wmv`
|
|
145
|
+
- `MOV`: `video/quicktime`
|
|
146
|
+
- `WEBM`: `video/webm`
|
|
147
|
+
- `AVI`: `video/avi`
|
|
148
|
+
- `MPEG`: `video/mpeg`
|
|
149
|
+
- `MP4`: `video/mp4`
|
|
150
|
+
|
|
151
|
+
### **Audio MIME Types**
|
|
152
|
+
|
|
153
|
+
- `AMR`: `audio/amr`
|
|
154
|
+
- `MIDI`: `audio/midi`
|
|
155
|
+
- `FLAC`: `audio/flac`
|
|
156
|
+
- `OGG`: `audio/ogg`
|
|
157
|
+
- `AAC`: `audio/aac`
|
|
158
|
+
- `MP3`: `audio/mpeg`
|
|
159
|
+
- `WAV`: `audio/wav`
|
|
160
|
+
|
|
161
|
+
### **Archive MIME Types**
|
|
162
|
+
|
|
163
|
+
- `TAR`: `application/x-tar`
|
|
164
|
+
- `GZ`: `application/gzip`
|
|
165
|
+
- `SEVEN_ZIP`: `application/x-7z-compressed`
|
|
166
|
+
- `ZIP`: `application/zip`
|
|
167
|
+
- `RAR`: `application/vnd.rar`
|
|
168
|
+
- `BZ2`: `application/x-bzip2`
|
|
169
|
+
|
|
170
|
+
### **Web-related MIME Types**
|
|
171
|
+
|
|
172
|
+
- `ICS`: `text/calendar`
|
|
173
|
+
- `ATOM`: `application/atom+xml`
|
|
174
|
+
- `RSS`: `application/rss+xml`
|
|
175
|
+
- `WASM`: `application/wasm`
|
|
176
|
+
- `YAML`: `application/x-yaml`
|
|
177
|
+
- `GRAPHQL`: `application/graphql`
|
|
178
|
+
- `URL_ENCODED`: `application/x-www-form-urlencoded`
|
|
179
|
+
- `JSON`: `application/json`
|
|
180
|
+
- `XML`: `application/xml`
|
|
181
|
+
- `JS`: `application/javascript`
|
|
182
|
+
- `CSS`: `text/css`
|
|
183
|
+
- `HTML`: `text/html`
|
|
184
|
+
|
|
185
|
+
### **Font MIME Types**
|
|
186
|
+
|
|
187
|
+
- `WOFF`: `font/woff`
|
|
188
|
+
- `WOFF2`: `font/woff2`
|
|
189
|
+
- `TTF`: `font/ttf`
|
|
190
|
+
- `OTF`: `font/otf`
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## License
|
|
195
|
+
|
|
196
|
+
[](https://creativecommons.org/licenses/by-nc-nd/4.0/)
|
|
197
|
+
|
|
198
|
+
This project is licensed under the **Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)**.
|
|
199
|
+
|
|
200
|
+
### You are free to:
|
|
201
|
+
|
|
202
|
+
- **Share** — Copy and redistribute the material in any medium or format.
|
|
203
|
+
|
|
204
|
+
### Under the following terms:
|
|
205
|
+
|
|
206
|
+
- **Attribution** — You must give appropriate credit, provide a link to the license, and indicate if changes were made.
|
|
207
|
+
- **NonCommercial** — You may not use the material for commercial purposes.
|
|
208
|
+
- **NoDerivatives** — If you remix, transform, or build upon the material, you may not distribute the modified material.
|
|
209
|
+
|
|
210
|
+
For more details, please visit the [Creative Commons License Page](https://creativecommons.org/licenses/by-nc-nd/4.0/).
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
## Acknowledgments
|
|
215
|
+
|
|
216
|
+
Special thanks to the following resources:
|
|
217
|
+
|
|
218
|
+
1. **MDN Web Docs** - Comprehensive MIME type references.
|
|
219
|
+
2. **Node.js Express Documentation** - Guidance on handling MIME types in HTTP responses.
|
|
220
|
+
3. **TypeScript Docs** - Best practices for defining and using type-safe constants.
|
|
221
|
+
|
|
222
|
+
---
|
|
223
|
+
|
|
224
|
+
## FAQs
|
|
225
|
+
|
|
226
|
+
### 1. **How do I determine the correct MIME type for my file?**
|
|
227
|
+
|
|
228
|
+
MIME types are categorized based on their format. Documents, images, videos, audio, and archives each have their respective MIME types. Refer to the [Supported MIME Types](#supported-mime-types) section for details.
|
|
229
|
+
|
|
230
|
+
### 2. **Can I extend this library with custom MIME types?**
|
|
231
|
+
|
|
232
|
+
No, the constants are immutable and follow the official MIME type standards. If needed, you can create a wrapper module to include your custom MIME types.
|
|
233
|
+
|
|
234
|
+
### 3. **How do I uninstall the package?**
|
|
235
|
+
|
|
236
|
+
You can remove the package by running:
|
|
237
|
+
|
|
238
|
+
```bash
|
|
239
|
+
npm uninstall mime-types-lite
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
or
|
|
243
|
+
|
|
244
|
+
```bash
|
|
245
|
+
yarn remove mime-types-lite
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
or
|
|
249
|
+
|
|
250
|
+
```bash
|
|
251
|
+
pnpm remove mime-types-lite
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
or
|
|
255
|
+
|
|
256
|
+
```bash
|
|
257
|
+
bun remove mime-types-lite
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
## Author
|
|
263
|
+
|
|
264
|
+
<table>
|
|
265
|
+
<tr>
|
|
266
|
+
<td align="center">
|
|
267
|
+
<img src="https://avatars.githubusercontent.com/u/95298623?v=4" width="100px" alt="Moon">
|
|
268
|
+
<a href="https://github.com/montasim">
|
|
269
|
+
<br>
|
|
270
|
+
M♢NTΛSIM
|
|
271
|
+
<br>
|
|
272
|
+
</a>
|
|
273
|
+
</td>
|
|
274
|
+
</tr>
|
|
275
|
+
</table>
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Defines the various MIME types used in the application.
|
|
3
|
-
* This module exports an object that contains the different MIME types
|
|
4
|
-
* the application can handle. These MIME types are used to identify the format of data being processed or served.
|
|
5
|
-
*
|
|
6
|
-
* @module constants/mimeTypesLite
|
|
7
|
-
* @version 1.0.0
|
|
8
|
-
* @license CC BY-NC-ND 4.0
|
|
9
|
-
*
|
|
10
|
-
* @contact Mohammad Montasim -Al- Mamun Shuvo
|
|
11
|
-
* @created 2025-01-28
|
|
12
|
-
* @contactEmail montasimmamun@gmail.com
|
|
13
|
-
* @contactGithub https://github.com/montasim
|
|
14
|
-
*/
|
|
15
1
|
/**
|
|
16
2
|
* An object representing different MIME types.
|
|
17
3
|
* @enum {string}
|
|
@@ -363,6 +349,6 @@ declare const mimeTypesLite: Readonly<{
|
|
|
363
349
|
/**
|
|
364
350
|
* Type definition for available MIME types.
|
|
365
351
|
*/
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
352
|
+
type MimeType = keyof typeof mimeTypesLite;
|
|
353
|
+
|
|
354
|
+
export { type MimeType, mimeTypesLite as default };
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Defines the various MIME types used in the application.
|
|
3
|
-
* This module exports an object that contains the different MIME types
|
|
4
|
-
* the application can handle. These MIME types are used to identify the format of data being processed or served.
|
|
5
|
-
*
|
|
6
|
-
* @module constants/mimeTypesLite
|
|
7
|
-
* @version 1.0.0
|
|
8
|
-
* @license CC BY-NC-ND 4.0
|
|
9
|
-
*
|
|
10
|
-
* @contact Mohammad Montasim -Al- Mamun Shuvo
|
|
11
|
-
* @created 2025-01-28
|
|
12
|
-
* @contactEmail montasimmamun@gmail.com
|
|
13
|
-
* @contactGithub https://github.com/montasim
|
|
14
|
-
*/
|
|
15
1
|
/**
|
|
16
2
|
* An object representing different MIME types.
|
|
17
3
|
* @enum {string}
|
|
@@ -363,6 +349,6 @@ declare const mimeTypesLite: Readonly<{
|
|
|
363
349
|
/**
|
|
364
350
|
* Type definition for available MIME types.
|
|
365
351
|
*/
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
352
|
+
type MimeType = keyof typeof mimeTypesLite;
|
|
353
|
+
|
|
354
|
+
export { type MimeType, mimeTypesLite as default };
|
|
@@ -368,18 +368,3 @@ var mimeTypesLite = Object.freeze({
|
|
|
368
368
|
OTF: "font/otf"
|
|
369
369
|
});
|
|
370
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
|
|
@@ -347,18 +347,3 @@ var index_default = mimeTypesLite;
|
|
|
347
347
|
export {
|
|
348
348
|
index_default as default
|
|
349
349
|
};
|
|
350
|
-
/**
|
|
351
|
-
* @fileoverview Defines the various MIME types used in the application.
|
|
352
|
-
* This module exports an object that contains the different MIME types
|
|
353
|
-
* the application can handle. These MIME types are used to identify the format of data being processed or served.
|
|
354
|
-
*
|
|
355
|
-
* @module constants/mimeTypesLite
|
|
356
|
-
* @version 1.0.0
|
|
357
|
-
* @license CC BY-NC-ND 4.0
|
|
358
|
-
*
|
|
359
|
-
* @contact Mohammad Montasim -Al- Mamun Shuvo
|
|
360
|
-
* @created 2025-01-28
|
|
361
|
-
* @contactEmail montasimmamun@gmail.com
|
|
362
|
-
* @contactGithub https://github.com/montasim
|
|
363
|
-
*/
|
|
364
|
-
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,74 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mime-types-lite",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "A collection of common MIME types for use in applications.",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=20.x"
|
|
7
|
+
},
|
|
8
|
+
"main": "./dist/index.cjs",
|
|
9
|
+
"module": "./dist/index.mjs",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
9
11
|
"exports": {
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
"require": "./dist/cjs/index.cjs"
|
|
13
|
-
}
|
|
12
|
+
"import": "./dist/index.mjs",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"dist",
|
|
17
|
+
"CHANGELOG.md",
|
|
17
18
|
"README.md"
|
|
18
19
|
],
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "rimraf dist && tsup src/index.ts --dts --format esm,cjs --out-dir dist",
|
|
22
|
+
"test": "jest",
|
|
23
|
+
"test:watch": "jest --watch",
|
|
24
|
+
"eslint:check": "eslint .",
|
|
25
|
+
"eslint:fix": "eslint . --fix",
|
|
26
|
+
"prettier:check": "prettier . --check",
|
|
27
|
+
"prettier:fix": "prettier . --write",
|
|
28
|
+
"lint:fix": "eslint . --fix && prettier . --write",
|
|
29
|
+
"prepare": "husky",
|
|
30
|
+
"commitlint": "commitlint --edit",
|
|
31
|
+
"release": "HUSKY_SKIP_HOOKS=1 standard-version && git push --follow-tags",
|
|
32
|
+
"release:minor": "standard-version --release-as minor && git push --follow-tags",
|
|
33
|
+
"release:major": "standard-version --release-as major && git push --follow-tags",
|
|
34
|
+
"release:patch": "standard-version --release-as patch && git push --follow-tags"
|
|
22
35
|
},
|
|
23
36
|
"keywords": [
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"media types",
|
|
29
|
-
"media-type",
|
|
30
|
-
"file types",
|
|
31
|
-
"file-format",
|
|
32
|
-
"mime type constants",
|
|
33
|
-
"mime type library",
|
|
34
|
-
"mime type utility",
|
|
35
|
-
"mime type definitions",
|
|
36
|
-
"mime type enum",
|
|
37
|
-
"mime type mapping",
|
|
38
|
-
"HTTP mime types",
|
|
39
|
-
"web development mime types",
|
|
40
|
-
"API mime types",
|
|
41
|
-
"file processing mime types",
|
|
42
|
-
"data serialization mime types",
|
|
43
|
-
"data interchange mime types",
|
|
44
|
-
"TypeScript mime types",
|
|
45
|
-
"Node.js mime types",
|
|
46
|
-
"JavaScript mime types",
|
|
47
|
-
"web application mime types",
|
|
48
|
-
"mime negotiation",
|
|
49
|
-
"accept header",
|
|
50
|
-
"mime-type header",
|
|
51
|
-
"file upload mime types",
|
|
52
|
-
"multipart form data",
|
|
53
|
-
"JSON mime type",
|
|
54
|
-
"XML mime type",
|
|
55
|
-
"HTML mime type",
|
|
56
|
-
"CSS mime type",
|
|
57
|
-
"image mime types",
|
|
58
|
-
"video mime types",
|
|
59
|
-
"audio mime types",
|
|
60
|
-
"text mime types",
|
|
61
|
-
"application mime types",
|
|
62
|
-
"common mime types",
|
|
63
|
-
"standard mime types",
|
|
64
|
-
"predefined mime types",
|
|
65
|
-
"immutable mime types",
|
|
66
|
-
"lightweight mime types",
|
|
67
|
-
"efficient mime types",
|
|
68
|
-
"cross-platform mime types",
|
|
69
|
-
"open source mime types",
|
|
70
|
-
"npm package",
|
|
71
|
-
"mime-types-lite",
|
|
37
|
+
"npm",
|
|
38
|
+
"boilerplate",
|
|
39
|
+
"typescript",
|
|
40
|
+
"javascript",
|
|
72
41
|
"montasim"
|
|
73
42
|
],
|
|
74
43
|
"author": {
|
|
@@ -96,41 +65,19 @@
|
|
|
96
65
|
"access": "public"
|
|
97
66
|
},
|
|
98
67
|
"devDependencies": {
|
|
99
|
-
"@commitlint/
|
|
100
|
-
"@
|
|
101
|
-
"@eslint/
|
|
102
|
-
"@
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"eslint-plugin-prettier": "^5.2.1",
|
|
110
|
-
"eslint-plugin-security": "^3.0.1",
|
|
111
|
-
"globals": "^15.14.0",
|
|
112
|
-
"husky": "^9.1.4",
|
|
113
|
-
"jest": "^29.7.0",
|
|
114
|
-
"lint-staged": "^15.2.9",
|
|
115
|
-
"prettier": "^3.3.3",
|
|
68
|
+
"@commitlint/config-conventional": "^19.8.1",
|
|
69
|
+
"@types/jest": "^30.0.0",
|
|
70
|
+
"@typescript-eslint/eslint-plugin": "^8.38.0",
|
|
71
|
+
"@typescript-eslint/parser": "^8.38.0",
|
|
72
|
+
"commitlint": "^19.8.1",
|
|
73
|
+
"eslint": "^9.31.0",
|
|
74
|
+
"husky": "^9.1.7",
|
|
75
|
+
"jest": "^30.0.5",
|
|
76
|
+
"prettier": "^3.6.2",
|
|
77
|
+
"rimraf": "^6.0.1",
|
|
116
78
|
"standard-version": "^9.5.0",
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"ts-node": "^10.9.2",
|
|
79
|
+
"ts-jest": "^29.4.0",
|
|
80
|
+
"tsup": "^8.5.0",
|
|
120
81
|
"typescript": "^5.8.3"
|
|
121
|
-
},
|
|
122
|
-
"scripts": {
|
|
123
|
-
"build": "eslint . --fix && prettier . --write && tsc --build && node scripts/compress.js",
|
|
124
|
-
"test": "jest",
|
|
125
|
-
"eslint:check": "eslint .",
|
|
126
|
-
"eslint:fix": "eslint . --fix",
|
|
127
|
-
"prettier:check": "prettier . --check",
|
|
128
|
-
"prettier:fix": "prettier . --write",
|
|
129
|
-
"lint:fix": "eslint . --fix && prettier . --write",
|
|
130
|
-
"commitlint": "commitlint --edit",
|
|
131
|
-
"release": "HUSKY_SKIP_HOOKS=1 standard-version && git push --follow-tags",
|
|
132
|
-
"release:minor": "standard-version --release-as minor && git push --follow-tags",
|
|
133
|
-
"release:major": "standard-version --release-as major && git push --follow-tags",
|
|
134
|
-
"release:patch": "standard-version --release-as patch && git push --follow-tags"
|
|
135
82
|
}
|
|
136
|
-
}
|
|
83
|
+
}
|
package/dist/cjs/index.cjs.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
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": "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",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/dist/cjs/index.min.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__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;
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/esm/index.cjs.js
DELETED
|
@@ -1,364 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Defines the various MIME types used in the application.
|
|
3
|
-
* This module exports an object that contains the different MIME types
|
|
4
|
-
* the application can handle. These MIME types are used to identify the format of data being processed or served.
|
|
5
|
-
*
|
|
6
|
-
* @module constants/mimeTypesLite
|
|
7
|
-
* @version 1.0.0
|
|
8
|
-
* @license CC BY-NC-ND 4.0
|
|
9
|
-
*
|
|
10
|
-
* @contact Mohammad Montasim -Al- Mamun Shuvo
|
|
11
|
-
* @created 2025-01-28
|
|
12
|
-
* @contactEmail montasimmamun@gmail.com
|
|
13
|
-
* @contactGithub https://github.com/montasim
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* An object representing different MIME types.
|
|
17
|
-
* @enum {string}
|
|
18
|
-
*/
|
|
19
|
-
const mimeTypesLite = Object.freeze({
|
|
20
|
-
/** Document MIME Types */
|
|
21
|
-
/**
|
|
22
|
-
* MIME Type for ePub files.
|
|
23
|
-
* Example: Digital books are distributed in `.epub` format for eReaders.
|
|
24
|
-
*/
|
|
25
|
-
EPUB: 'application/epub+zip',
|
|
26
|
-
/**
|
|
27
|
-
* MIME Type for Latex files.
|
|
28
|
-
* Example: Documents written in LaTeX are saved in `.tex` format.
|
|
29
|
-
*/
|
|
30
|
-
TEX: 'application/x-tex',
|
|
31
|
-
/**
|
|
32
|
-
* MIME Type for Microsoft PowerPoint files (`.ppt` files).
|
|
33
|
-
* Example: Presentations are shared in `.ppt` format.
|
|
34
|
-
*/
|
|
35
|
-
PPT: 'application/vnd.ms-powerpoint',
|
|
36
|
-
/**
|
|
37
|
-
* MIME Type for Microsoft PowerPoint files in the Office Open XML format (`.pptx` files).
|
|
38
|
-
* Example: Presentations are shared in `.pptx` format.
|
|
39
|
-
*/
|
|
40
|
-
PPTX: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
|
41
|
-
/**
|
|
42
|
-
* MIME Type for OpenDocument Text files.
|
|
43
|
-
* Example: Documents created in LibreOffice Writer are saved as `.odt` files.
|
|
44
|
-
*/
|
|
45
|
-
ODT: 'application/vnd.oasis.opendocument.text',
|
|
46
|
-
/**
|
|
47
|
-
* MIME Type for OpenDocument Spreadsheet files.
|
|
48
|
-
* Example: Spreadsheets created in LibreOffice Calc are saved as `.ods` files.
|
|
49
|
-
*/
|
|
50
|
-
ODS: 'application/vnd.oasis.opendocument.spreadsheet',
|
|
51
|
-
/**
|
|
52
|
-
* MIME Type for Rich Text Format (RTF) files.
|
|
53
|
-
* Example: Word processors can save documents as `.rtf` files for compatibility.
|
|
54
|
-
*/
|
|
55
|
-
RTF: 'application/rtf',
|
|
56
|
-
/**
|
|
57
|
-
* MIME Type for Microsoft Word documents (`.doc` files).
|
|
58
|
-
* Example: A server serves `.doc` files for download.
|
|
59
|
-
*/
|
|
60
|
-
DOC: 'application/msword',
|
|
61
|
-
/**
|
|
62
|
-
* MIME Type for Microsoft Word documents in the Office Open XML format (`.docx` files).
|
|
63
|
-
* Example: Exported reports are generated as `.docx` files.
|
|
64
|
-
*/
|
|
65
|
-
DOCX: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
66
|
-
/**
|
|
67
|
-
* MIME Type for Microsoft Excel files (`.xls` files).
|
|
68
|
-
* Example: Financial data is provided in `.xls` format.
|
|
69
|
-
*/
|
|
70
|
-
XLS: 'application/vnd.ms-excel',
|
|
71
|
-
/**
|
|
72
|
-
* MIME Type for Microsoft Excel spreadsheets in the Office Open XML format (`.xlsx` files).
|
|
73
|
-
* Example: Data analytics tools export `.xlsx` files.
|
|
74
|
-
*/
|
|
75
|
-
XLSX: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
76
|
-
/**
|
|
77
|
-
* MIME Type for PDF files.
|
|
78
|
-
* Example: The application generates an invoice as a `.pdf` file for download.
|
|
79
|
-
*/
|
|
80
|
-
PDF: 'application/pdf',
|
|
81
|
-
/**
|
|
82
|
-
* MIME Type for Markdown files.
|
|
83
|
-
* Example: Documentation files are stored and processed as `.md`.
|
|
84
|
-
*/
|
|
85
|
-
MD: 'text/markdown',
|
|
86
|
-
/**
|
|
87
|
-
* MIME Type for Plain Text files.
|
|
88
|
-
* Example: A log file is served as a `.txt` file.
|
|
89
|
-
*/
|
|
90
|
-
TXT: 'text/plain',
|
|
91
|
-
/**
|
|
92
|
-
* MIME Type for CSV files.
|
|
93
|
-
* Example: Exported reports are downloaded as `.csv` files.
|
|
94
|
-
*/
|
|
95
|
-
CSV: 'text/csv',
|
|
96
|
-
/** Image MIME Types */
|
|
97
|
-
/**
|
|
98
|
-
* MIME Type for XCF files.
|
|
99
|
-
* Example: Images edited in GIMP are saved in `.xcf` format.
|
|
100
|
-
*/
|
|
101
|
-
XCF: 'image/x-xcf',
|
|
102
|
-
/**
|
|
103
|
-
* MIME Type for Photoshop files.
|
|
104
|
-
* Example: Graphics are saved and edited in `.psd` format.
|
|
105
|
-
*/
|
|
106
|
-
PSD: 'image/vnd.adobe.photoshop',
|
|
107
|
-
/**
|
|
108
|
-
* MIME Type for JPEG 2000 images.
|
|
109
|
-
* Example: High-quality images saved in `.jp2` format.
|
|
110
|
-
*/
|
|
111
|
-
JP2: 'image/jp2',
|
|
112
|
-
/**
|
|
113
|
-
* MIME Type for AVIF images.
|
|
114
|
-
* Example: Modern compressed images saved in `.avif` format.
|
|
115
|
-
*/
|
|
116
|
-
AVIF: 'image/avif',
|
|
117
|
-
/**
|
|
118
|
-
* MIME Type for HEIC images.
|
|
119
|
-
* Example: Photos captured by modern smartphones are saved as `.heic` files for better compression.
|
|
120
|
-
*/
|
|
121
|
-
HEIC: 'image/heic',
|
|
122
|
-
/**
|
|
123
|
-
* MIME Type for WebP images.
|
|
124
|
-
* Example: Web servers deliver `.webp` images for optimized website performance.
|
|
125
|
-
*/
|
|
126
|
-
WEBP: 'image/webp',
|
|
127
|
-
/**
|
|
128
|
-
* MIME Type for JPEG images.
|
|
129
|
-
* Example: User profile pictures are uploaded and served as `.jpeg` images.
|
|
130
|
-
*/
|
|
131
|
-
JPG: 'image/jpeg',
|
|
132
|
-
/**
|
|
133
|
-
* MIME Type for JPEG images.
|
|
134
|
-
* Example: User profile pictures are uploaded and served as `.jpeg` images.
|
|
135
|
-
*/
|
|
136
|
-
JPEG: 'image/jpeg',
|
|
137
|
-
/**
|
|
138
|
-
* MIME Type for PNG images.
|
|
139
|
-
* Example: A server serves `.png` files for website logos.
|
|
140
|
-
*/
|
|
141
|
-
PNG: 'image/png',
|
|
142
|
-
/**
|
|
143
|
-
* MIME Type for ICO images.
|
|
144
|
-
* Example: A server provides a `.ico` file as the favicon for a website.
|
|
145
|
-
*/
|
|
146
|
-
ICO: 'image/x-icon',
|
|
147
|
-
/**
|
|
148
|
-
* MIME Type for GIF images.
|
|
149
|
-
* Example: A messaging app serves `.gif` files for animated stickers.
|
|
150
|
-
*/
|
|
151
|
-
GIF: 'image/gif',
|
|
152
|
-
/**
|
|
153
|
-
* MIME Type for BMP images.
|
|
154
|
-
* Example: Specialized imaging software processes `.bmp` files.
|
|
155
|
-
*/
|
|
156
|
-
BMP: 'image/bmp',
|
|
157
|
-
/**
|
|
158
|
-
* MIME Type for TIFF images.
|
|
159
|
-
* Example: High-quality scanned documents are stored as `.tiff` files.
|
|
160
|
-
*/
|
|
161
|
-
TIFF: 'image/tiff',
|
|
162
|
-
/**
|
|
163
|
-
* MIME Type for SVG images.
|
|
164
|
-
* Example: A website serves `.svg` files for scalable vector icons.
|
|
165
|
-
*/
|
|
166
|
-
SVG: 'image/svg+xml',
|
|
167
|
-
/** Video MIME Types */
|
|
168
|
-
/**
|
|
169
|
-
* MIME Type for MKV videos.
|
|
170
|
-
* Example: High-quality video files saved in `.mkv` format.
|
|
171
|
-
*/
|
|
172
|
-
MKV: 'video/x-matroska',
|
|
173
|
-
/**
|
|
174
|
-
* MIME Type for FLV videos.
|
|
175
|
-
* Example: Flash video files are distributed in `.flv` format.
|
|
176
|
-
*/
|
|
177
|
-
FLV: 'video/x-flv',
|
|
178
|
-
/**
|
|
179
|
-
* MIME Type for WMV videos.
|
|
180
|
-
* Example: Windows Media videos are saved as `.wmv` files.
|
|
181
|
-
*/
|
|
182
|
-
WMV: 'video/x-ms-wmv',
|
|
183
|
-
/**
|
|
184
|
-
* MIME Type for QuickTime videos.
|
|
185
|
-
* Example: Apple devices record videos in `.mov` format using QuickTime.
|
|
186
|
-
*/
|
|
187
|
-
MOV: 'video/quicktime',
|
|
188
|
-
/**
|
|
189
|
-
* MIME Type for WebM videos.
|
|
190
|
-
* Example: Video sharing platforms provide `.webm` files for high-quality playback with smaller file sizes.
|
|
191
|
-
*/
|
|
192
|
-
WEBM: 'video/webm',
|
|
193
|
-
/**
|
|
194
|
-
* MIME Type for AVI videos.
|
|
195
|
-
* Example: Desktop applications render `.avi` files for video editing.
|
|
196
|
-
*/
|
|
197
|
-
AVI: 'video/avi',
|
|
198
|
-
/**
|
|
199
|
-
* MIME Type for MPEG videos.
|
|
200
|
-
* Example: Media players support playback of `.mpeg` files.
|
|
201
|
-
*/
|
|
202
|
-
MPEG: 'video/mpeg',
|
|
203
|
-
/**
|
|
204
|
-
* MIME Type for MP4 videos.
|
|
205
|
-
* Example: Video streaming services serve `.mp4` files for playback.
|
|
206
|
-
*/
|
|
207
|
-
MP4: 'video/mp4',
|
|
208
|
-
/** Audio MIME Types */
|
|
209
|
-
/**
|
|
210
|
-
* MIME Type for AMR audio files.
|
|
211
|
-
* Example: Voice recordings are stored in `.amr` format.
|
|
212
|
-
*/
|
|
213
|
-
AMR: 'audio/amr',
|
|
214
|
-
/**
|
|
215
|
-
* MIME Type for MIDI audio files.
|
|
216
|
-
* Example: Musical instrument digital interface data saved as `.midi` files.
|
|
217
|
-
*/
|
|
218
|
-
MIDI: 'audio/midi',
|
|
219
|
-
/**
|
|
220
|
-
* MIME Type for FLAC audio files.
|
|
221
|
-
* Example: Music enthusiasts use `.flac` files for lossless audio playback.
|
|
222
|
-
*/
|
|
223
|
-
FLAC: 'audio/flac',
|
|
224
|
-
/**
|
|
225
|
-
* MIME Type for OGG audio files.
|
|
226
|
-
* Example: Streaming platforms deliver `.ogg` files for high-quality audio playback.
|
|
227
|
-
*/
|
|
228
|
-
OGG: 'audio/ogg',
|
|
229
|
-
/**
|
|
230
|
-
* MIME Type for AAC audio files.
|
|
231
|
-
* Example: Advanced compression audio files are streamed as `.aac`.
|
|
232
|
-
*/
|
|
233
|
-
AAC: 'audio/aac',
|
|
234
|
-
/**
|
|
235
|
-
* MIME Type for MP3 audio files.
|
|
236
|
-
* Example: Music streaming services provide `.mp3` files for playback.
|
|
237
|
-
*/
|
|
238
|
-
MP3: 'audio/mpeg',
|
|
239
|
-
/**
|
|
240
|
-
* MIME Type for WAV audio files.
|
|
241
|
-
* Example: A sound editing application processes `.wav` files.
|
|
242
|
-
*/
|
|
243
|
-
WAV: 'audio/wav',
|
|
244
|
-
/** Archive MIME Types */
|
|
245
|
-
/**
|
|
246
|
-
* MIME Type for TAR archives.
|
|
247
|
-
* Example: Files are compressed in `.tar` format for packaging.
|
|
248
|
-
*/
|
|
249
|
-
TAR: 'application/x-tar',
|
|
250
|
-
/**
|
|
251
|
-
* MIME Type for GZ archives.
|
|
252
|
-
* Example: Files are compressed with GZIP and saved as `.gz` files.
|
|
253
|
-
*/
|
|
254
|
-
GZ: 'application/gzip',
|
|
255
|
-
/**
|
|
256
|
-
* MIME Type for 7z compressed archives.
|
|
257
|
-
* Example: Compressed files are shared in `.7z` format.
|
|
258
|
-
*/
|
|
259
|
-
SEVEN_ZIP: 'application/x-7z-compressed',
|
|
260
|
-
/**
|
|
261
|
-
* MIME Type for ZIP archives.
|
|
262
|
-
* Example: A server offers `.zip` archives for software downloads.
|
|
263
|
-
*/
|
|
264
|
-
ZIP: 'application/zip',
|
|
265
|
-
/**
|
|
266
|
-
* MIME Type for RAR archives.
|
|
267
|
-
* Example: Compressed files are provided in `.rar` format for download.
|
|
268
|
-
*/
|
|
269
|
-
RAR: 'application/vnd.rar',
|
|
270
|
-
/**
|
|
271
|
-
* MIME Type for BZ2 archives.
|
|
272
|
-
* Example: Files are compressed with BZIP2 and saved as `.bz2` files.
|
|
273
|
-
*/
|
|
274
|
-
BZ2: 'application/x-bzip2',
|
|
275
|
-
/** Web-related MIME Types */
|
|
276
|
-
/**
|
|
277
|
-
* MIME Type for `.ics` calendar files.
|
|
278
|
-
* Example: Calendar events are shared in `.ics` format for scheduling.
|
|
279
|
-
*/
|
|
280
|
-
ICS: 'text/calendar',
|
|
281
|
-
/**
|
|
282
|
-
* MIME Type for `.atom` feed files.
|
|
283
|
-
* Example: Websites syndicate content in `.atom` format for RSS readers.
|
|
284
|
-
*/
|
|
285
|
-
ATOM: 'application/atom+xml',
|
|
286
|
-
/**
|
|
287
|
-
* MIME Type for `.rss` feed files.
|
|
288
|
-
* Example: Websites syndicate content in `.rss` format for RSS readers.
|
|
289
|
-
*/
|
|
290
|
-
RSS: 'application/rss+xml',
|
|
291
|
-
/**
|
|
292
|
-
* MIME Type for `.wasm` WebAssembly files.
|
|
293
|
-
* Example: Servers deliver `.wasm` files to execute WebAssembly code in browsers.
|
|
294
|
-
*/
|
|
295
|
-
WASM: 'application/wasm',
|
|
296
|
-
/**
|
|
297
|
-
* MIME Type for `.csv` with semicolon separator.
|
|
298
|
-
* Example: Data files saved as `.csv` with a semicolon instead of a comma as a separator.
|
|
299
|
-
*/
|
|
300
|
-
CSV_SEMICOLON: 'text/csv+semicolon',
|
|
301
|
-
/**
|
|
302
|
-
* MIME Type for YAML files.
|
|
303
|
-
* Example: Configuration files for web applications are stored as `.yaml` or `.yml`.
|
|
304
|
-
*/
|
|
305
|
-
YAML: 'application/x-yaml',
|
|
306
|
-
/**
|
|
307
|
-
* MIME Type for GraphQL query payloads.
|
|
308
|
-
* Example: GraphQL APIs handle `.graphql` files for client-server communication.
|
|
309
|
-
*/
|
|
310
|
-
GRAPHQL: 'application/graphql',
|
|
311
|
-
/**
|
|
312
|
-
* MIME Type for URL-encoded form data.
|
|
313
|
-
* Example: Web forms send data as URL-encoded strings.
|
|
314
|
-
*/
|
|
315
|
-
URL_ENCODED: 'application/x-www-form-urlencoded',
|
|
316
|
-
/**
|
|
317
|
-
* MIME Type for JSON data.
|
|
318
|
-
* Example: REST APIs send data responses as JSON objects.
|
|
319
|
-
*/
|
|
320
|
-
JSON: 'application/json',
|
|
321
|
-
/**
|
|
322
|
-
* MIME Type for XML data.
|
|
323
|
-
* Example: SOAP APIs exchange data using `.xml` payloads.
|
|
324
|
-
*/
|
|
325
|
-
XML: 'application/xml',
|
|
326
|
-
/**
|
|
327
|
-
* MIME Type for JavaScript files.
|
|
328
|
-
* Example: A server delivers a `.js` file requested by a web browser.
|
|
329
|
-
*/
|
|
330
|
-
JS: 'application/javascript',
|
|
331
|
-
/**
|
|
332
|
-
* MIME Type for CSS files.
|
|
333
|
-
* Example: A server serves `.css` files to style a web page.
|
|
334
|
-
*/
|
|
335
|
-
CSS: 'text/css',
|
|
336
|
-
/**
|
|
337
|
-
* MIME Type for HTML files.
|
|
338
|
-
* Example: A server sends an `.html` file as a response to a browser request.
|
|
339
|
-
*/
|
|
340
|
-
HTML: 'text/html',
|
|
341
|
-
/** Font MIME Types */
|
|
342
|
-
/**
|
|
343
|
-
* MIME Type for Web Open Font Format (WOFF) files.
|
|
344
|
-
* Example: Websites load custom fonts using `.woff` files.
|
|
345
|
-
*/
|
|
346
|
-
WOFF: 'font/woff',
|
|
347
|
-
/**
|
|
348
|
-
* MIME Type for Web Open Font Format 2 (WOFF2) files.
|
|
349
|
-
* Example: Modern websites use `.woff2` files for optimized font delivery.
|
|
350
|
-
*/
|
|
351
|
-
WOFF2: 'font/woff2',
|
|
352
|
-
/**
|
|
353
|
-
* MIME Type for TrueType font files.
|
|
354
|
-
* Example: Fonts are shared in `.ttf` format for compatibility across systems.
|
|
355
|
-
*/
|
|
356
|
-
TTF: 'font/ttf',
|
|
357
|
-
/**
|
|
358
|
-
* MIME Type for OpenType font files.
|
|
359
|
-
* Example: Fonts are shared in `.otf` format for enhanced capabilities.
|
|
360
|
-
*/
|
|
361
|
-
OTF: 'font/otf',
|
|
362
|
-
});
|
|
363
|
-
module.exports = mimeTypesLite;
|
|
364
|
-
export {};
|
package/dist/esm/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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;;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;AAElD,eAAe,aAAa,CAAC"}
|
package/dist/esm/index.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
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": "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",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/dist/esm/index.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
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;export{index_default as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"root":["../../src/index.cjs.ts","../../src/index.ts"],"version":"5.8.3"}
|