@indra211/httpease 1.0.0 → 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.
- package/README.md +13 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
A lightweight, powerful HTTP client for JavaScript & TypeScript — Built on native fetch with automatic retry, interceptors, progress tracking, and more.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/http-ease)
|
|
6
|
-
[](https://opensource.org/licenses/MIT)
|
|
7
6
|
|
|
8
7
|
## ✨ Why HTTP Ease?
|
|
9
8
|
|
|
@@ -30,6 +29,7 @@ npm install httpease
|
|
|
30
29
|
## 🎯 Quick Start
|
|
31
30
|
|
|
32
31
|
### JavaScript
|
|
32
|
+
|
|
33
33
|
```javascript
|
|
34
34
|
const httpEase = require('httpease');
|
|
35
35
|
|
|
@@ -45,6 +45,7 @@ const newUser = await httpEase.post('https://api.example.com/users', {
|
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
### TypeScript
|
|
48
|
+
|
|
48
49
|
```typescript
|
|
49
50
|
import httpEase, { create, HttpEaseResponse } from 'httpease';
|
|
50
51
|
|
|
@@ -374,17 +375,17 @@ try {
|
|
|
374
375
|
## 🆚 Comparison with Axios
|
|
375
376
|
|
|
376
377
|
| Feature | HTTP Ease | Axios |
|
|
377
|
-
|
|
|
378
|
-
| **Size**
|
|
379
|
-
| **Dependencies**
|
|
380
|
-
| **Built-in Retry**
|
|
381
|
-
| **Interceptors**
|
|
382
|
-
| **Timeout**
|
|
383
|
-
| **Auto JSON**
|
|
384
|
-
| **Query Params**
|
|
385
|
-
| **Progress Tracking**
|
|
386
|
-
| **Cancel Requests**
|
|
387
|
-
| **TypeScript**
|
|
378
|
+
| --------------------------- | --------- | -------------------- |
|
|
379
|
+
| **Size** | ~5KB | ~13KB |
|
|
380
|
+
| **Dependencies** | 0 | Many |
|
|
381
|
+
| **Built-in Retry** | ✅ Yes | ❌ No (needs plugin) |
|
|
382
|
+
| **Interceptors** | ✅ Yes | ✅ Yes |
|
|
383
|
+
| **Timeout** | ✅ Yes | ✅ Yes |
|
|
384
|
+
| **Auto JSON** | ✅ Yes | ✅ Yes |
|
|
385
|
+
| **Query Params** | ✅ Yes | ✅ Yes |
|
|
386
|
+
| **Progress Tracking** | ✅ Yes | ✅ Yes |
|
|
387
|
+
| **Cancel Requests** | ✅ Yes | ✅ Yes |
|
|
388
|
+
| **TypeScript** | ✅ Yes | ✅ Yes |
|
|
388
389
|
|
|
389
390
|
## 🎯 Use Cases
|
|
390
391
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indra211/httpease",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Lightweight HTTP client built on native fetch — zero dependencies, TypeScript support, retry, interceptors & progress tracking.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/types/index.d.ts",
|