rexio-api
v1.3.2
Published
RexioAPI — a modern lightweight HTTP request toolkit built on Fetch.
Maintainers
Readme
🚀 REXIO-API — Modern Fetch-Powered HTTP Request Library
Created & Maintained by: Mukesh Pathak
Passionate JavaScript Engineer | Open‑Source Builder
Rexio-API is a lightweight, axios-style HTTP client built using native fetch() with a clean, minimal API designed for Node.js, Browser, React, Next.js & API apps.
Fast. Simple. Modern.
📦 Installation
npm install rexio-apior
yarn add rexio-api🔥 Usage Example
import Rexio from "rexio-api";
const api = new Rexio({ baseURL: "https://jsonplaceholder.typicode.com" });
const data = await api.get("/posts/1");
console.log(data);⚡ API Methods
| Method | Example Usage |
| -------- | ------------------------------ |
| GET | api.get("/users") |
| POST | api.post("/users", data) |
| PUT | api.put("/users/1", data") |
| PATCH | api.patch("/users/1", data") |
| DELETE | api.delete("/users/1") |
🧪 Request with Headers + Body
api
.post(
"/posts",
{ title: "Rexio API", body: "Hello world!", userId: 1 },
{ Authorization: "Bearer 12345" }
)
.then(console.log);🌍 Without baseURL
const api = new Rexio();
api.get("https://dummyjson.com/products/1").then(console.log);📌 Config Options
new Rexio({
baseURL: "https://api.example.com",
headers: {
Authorization: "Bearer token123",
"X-Custom-Header": "Hello",
},
});🔥 Features
✔ Fetch Powered
✔ Works in Node & Browser
✔ Minimal API
✔ No Dependencies
✔ Fast & Clean
🚀 Coming Soon — Rexio v2
🔹 Interceptors like Axios
🔹 Retry + Timeout
🔹 Upload Progress
🔹 TypeScript Support
🔹 Plugin System
🧑💻 Author
👤 Mukesh Pathak
📌 Open Source Developer
💻 Building Rexio & More JavaScript Tools
⭐ Show support — Star on GitHub!
📝 License
MIT — Free for personal & commercial projects
