reqlib is a Node.js library that simplifies REST API requests with built-in retry, redirect following, and timeout handling. The current stable version is 1.0.13, though the package is no longer actively maintained (last update in 2019). It wraps Node's native http/https modules with a promise-based Request class, offering methods like get, post, put, delete, patch, and head. Unlike popular alternatives like axios or node-fetch, reqlib is specialized for REST consumers with configurable retry on 5xx errors and redirect limits.
npm install reqlibNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Request instance with custom retry, redirect, and timeout settings, then performs a GET request.
Use import syntax instead of require().
Consider migrating to axios or node-fetch for active support.
Create a new options object for each Request instance.
Implement your own retry logic for other types of errors.
Change to: import { Request } from 'reqlib';Run: npm install reqlib
Wrap request in try/catch and check for errors before accessing response fields.