@ooneex/http-mimes 0.0.18 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +10 -27
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,54 +1,38 @@
1
1
  # @ooneex/http-mimes
2
2
 
3
- A comprehensive TypeScript/JavaScript library for working with HTTP MIME types. This package provides a complete collection of MIME types and utility methods to identify and work with different content types in web applications.
3
+ Complete MIME type registry with TypeScript constants and lookup utilities for HTTP content type negotiation and file type detection.
4
4
 
5
5
  ![Browser](https://img.shields.io/badge/Browser-Compatible-green?style=flat-square&logo=googlechrome)
6
6
  ![Bun](https://img.shields.io/badge/Bun-Compatible-orange?style=flat-square&logo=bun)
7
- ![Deno](https://img.shields.io/badge/Deno-Compatible-blue?style=flat-square&logo=deno)
8
- ![Node.js](https://img.shields.io/badge/Node.js-Compatible-green?style=flat-square&logo=node.js)
9
7
  ![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue?style=flat-square&logo=typescript)
10
8
  ![MIT License](https://img.shields.io/badge/License-MIT-yellow?style=flat-square)
11
9
 
12
10
  ## Features
13
11
 
14
- ✅ **Complete MIME Type Collection** - Extensive list of standard MIME types
12
+ ✅ **Complete MIME Type Registry** - Comprehensive collection of standard MIME type constants
15
13
 
16
- ✅ **Type-Safe** - Full TypeScript support with proper type definitions
14
+ ✅ **Content Type Detection** - Methods for identifying JSON, HTML, CSS, JavaScript, XML, images, audio, video, fonts, and more
17
15
 
18
- ✅ **Lightweight** - Minimal dependencies and optimized bundle size
16
+ ✅ **Document Detection** - Detect Word, Excel, PowerPoint, PDF, CSV, Markdown, and RTF formats
19
17
 
20
- ✅ **Cross-Platform** - Works in Browser, Node.js, Bun, and Deno
18
+ ✅ **Media Detection** - Identify specific formats like JPEG, PNG, GIF, WebP, SVG, MP3, MP4
21
19
 
22
- ✅ **Easy Detection** - Simple methods to identify content types
20
+ ✅ **Form and Stream Detection** - Detect form data, multipart, blob, and stream MIME types
23
21
 
24
- ✅ **Case Insensitive** - Handles different case variations
22
+ ✅ **Type-Safe** - Full TypeScript support with `MimeType` union type for all valid MIME types
25
23
 
26
- ✅ **Whitespace Tolerant** - Automatically trims whitespace
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": "Comprehensive MIME type definitions and constants for HTTP content type handling",
4
- "version": "0.0.18",
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.1",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -25,7 +25,7 @@
25
25
  "test": "bun test tests",
26
26
  "build": "bunup",
27
27
  "lint": "tsgo --noEmit && bunx biome lint",
28
- "npm:publish": "bun publish --tolerate-republish --access public"
28
+ "npm:publish": "bun publish --tolerate-republish --force --production --access public"
29
29
  },
30
30
  "devDependencies": {},
31
31
  "keywords": [