@ooneex/http-mimes 0.0.17 → 1.0.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/README.md +10 -27
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,54 +1,38 @@
|
|
|
1
1
|
# @ooneex/http-mimes
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Complete MIME type registry with TypeScript constants and lookup utilities for HTTP content type negotiation and file type detection.
|
|
4
4
|
|
|
5
5
|

|
|
6
6
|

|
|
7
|
-

|
|
8
|
-

|
|
9
7
|

|
|
10
8
|

|
|
11
9
|
|
|
12
10
|
## Features
|
|
13
11
|
|
|
14
|
-
✅ **Complete MIME Type
|
|
12
|
+
✅ **Complete MIME Type Registry** - Comprehensive collection of standard MIME type constants
|
|
15
13
|
|
|
16
|
-
✅ **Type
|
|
14
|
+
✅ **Content Type Detection** - Methods for identifying JSON, HTML, CSS, JavaScript, XML, images, audio, video, fonts, and more
|
|
17
15
|
|
|
18
|
-
✅ **
|
|
16
|
+
✅ **Document Detection** - Detect Word, Excel, PowerPoint, PDF, CSV, Markdown, and RTF formats
|
|
19
17
|
|
|
20
|
-
✅ **
|
|
18
|
+
✅ **Media Detection** - Identify specific formats like JPEG, PNG, GIF, WebP, SVG, MP3, MP4
|
|
21
19
|
|
|
22
|
-
✅ **
|
|
20
|
+
✅ **Form and Stream Detection** - Detect form data, multipart, blob, and stream MIME types
|
|
23
21
|
|
|
24
|
-
✅ **
|
|
22
|
+
✅ **Type-Safe** - Full TypeScript support with `MimeType` union type for all valid MIME types
|
|
25
23
|
|
|
26
|
-
✅ **
|
|
24
|
+
✅ **Case Insensitive** - Handles different case variations automatically
|
|
27
25
|
|
|
28
26
|
✅ **Zero Dependencies** - No external dependencies required
|
|
29
27
|
|
|
28
|
+
✅ **Cross-Platform** - Works in Browser, Node.js, Bun, and Deno
|
|
29
|
+
|
|
30
30
|
## Installation
|
|
31
31
|
|
|
32
|
-
### Bun
|
|
33
32
|
```bash
|
|
34
33
|
bun add @ooneex/http-mimes
|
|
35
34
|
```
|
|
36
35
|
|
|
37
|
-
### pnpm
|
|
38
|
-
```bash
|
|
39
|
-
pnpm add @ooneex/http-mimes
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
### Yarn
|
|
43
|
-
```bash
|
|
44
|
-
yarn add @ooneex/http-mimes
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### npm
|
|
48
|
-
```bash
|
|
49
|
-
npm install @ooneex/http-mimes
|
|
50
|
-
```
|
|
51
|
-
|
|
52
36
|
## Usage
|
|
53
37
|
|
|
54
38
|
### Basic Usage
|
|
@@ -431,7 +415,6 @@ mime.isGzip('application/x-gzip'); // true
|
|
|
431
415
|
mime.isGzip('application/zip'); // false
|
|
432
416
|
```
|
|
433
417
|
|
|
434
|
-
|
|
435
418
|
#### `MimeType`
|
|
436
419
|
TypeScript type representing all valid MIME types.
|
|
437
420
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ooneex/http-mimes",
|
|
3
|
-
"description": "
|
|
4
|
-
"version": "0.0
|
|
3
|
+
"description": "Complete MIME type registry with TypeScript constants and lookup utilities for HTTP content type negotiation and file type detection",
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|