Installing @briklab/reqor
The @briklab/reqor package is a lightweight wrapper around the standard fetch API that adds retries, timeouts, middleware, and a fluent interface.
Follow the common installation tutorial for detailed instructions that apply to all BrikLab packages.
Quick Install
Using pnpm
bash
pnpm add @briklab/reqorUsing npm
bash
npm install @briklab/reqorVerify Installation
A simple script that imports reqor and performs a harmless request will confirm the package is working:
ts
import reqor from "@briklab/reqor";
(async () => {
const res = await reqor("https://httpbin.org/get").get();
console.log("status", res.status);
console.log("@briklab/reqor installed successfully!");
})();Next Steps
- Getting Started: Learn the basics of making requests
- Examples: See common use‑cases and patterns
- Advanced: Custom middleware, global configuration, and error handling
