@rutansh0101/fetchify 1.0.0 → 1.0.2

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Rutansh Chawla
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Fetchify - A Lightweight HTTP Client Library
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/@rutansh0101/fetchify.svg)](https://www.npmjs.com/package/@rutansh0101/fetchify)
4
+ [![npm downloads](https://img.shields.io/npm/dm/@rutansh0101/fetchify.svg)](https://www.npmjs.com/package/@rutansh0101/fetchify)
5
+ [![license](https://img.shields.io/npm/l/@rutansh0101/fetchify.svg)](https://github.com/Rutansh0101/Fetchify-Rutansh-Chawla/blob/master/LICENSE)
6
+
3
7
  Fetchify is a modern, lightweight HTTP client library built on top of the native Fetch API. It provides a clean, axios-like interface with support for interceptors, request/response transformation, timeout handling, and more.
4
8
 
5
9
  ---
@@ -26,17 +30,20 @@ Fetchify is a modern, lightweight HTTP client library built on top of the native
26
30
 
27
31
  ## Installation & Setup
28
32
 
33
+ ### Installation
34
+
35
+ ```bash
36
+ npm install @rutansh0101/fetchify
37
+ ```
38
+
29
39
  ### Prerequisites
30
- - Node.js environment with ES6+ module support
31
- - Modern browser with Fetch API support
40
+ - Node.js 14+ or modern browser with Fetch API support
41
+ - ES6+ module support
32
42
 
33
- ### Setup
34
- 1. Clone or download the project
35
- 2. Ensure your project supports ES6 modules (add `"type": "module"` in package.json)
36
- 3. Import Fetchify in your code:
43
+ ### Import
37
44
 
38
45
  ```javascript
39
- import fetchify from "./fetchify.js";
46
+ import fetchify from '@rutansh0101/fetchify';
40
47
  ```
41
48
 
42
49
  ---
@@ -46,7 +53,7 @@ import fetchify from "./fetchify.js";
46
53
  ### Creating an Instance
47
54
 
48
55
  ```javascript
49
- import fetchify from "./fetchify.js";
56
+ import fetchify from '@rutansh0101/fetchify';
50
57
 
51
58
  // Create an instance with base configuration
52
59
  const api = fetchify.create({
@@ -807,7 +814,7 @@ Separation provides flexibility and reusability.
807
814
  ### Complete Example with All Features
808
815
 
809
816
  ```javascript
810
- import fetchify from "./fetchify.js";
817
+ import fetchify from '@rutansh0101/fetchify';
811
818
 
812
819
  // 1. Create instance with base config
813
820
  const api = fetchify.create({
package/fetchify.js CHANGED
@@ -1,3 +1,10 @@
1
+ /**
2
+ * Fetchify - A Lightweight HTTP Client Library
3
+ * @author Rutansh Chawla
4
+ * @license MIT
5
+ * @version 1.0.0
6
+ */
7
+
1
8
  class Fetchify {
2
9
  // Implementation of Fetchify class
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rutansh0101/fetchify",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "A modern, lightweight HTTP client library built on top of the native Fetch API with axios-like interface, interceptors, and timeout support",
5
5
  "license": "MIT",
6
6
  "author": "Rutansh Chawla",