Fetch-backed migration client for code moving away from request.
request is deprecated. This package preserves the most common request-shaped call patterns while returning modern Response objects and typed result helpers.
npm install request-modernimport request, { get, post } from "request-modern";
const response = await get("https://example.com");
const json = await request.json("https://api.example.com/data");
request("https://example.com", (error, response, body) => {
if (error) throw error;
console.log(response.statusCode, body);
});request(urlOrOptions, callback?)get(urlOrOptions, callback?)post(urlOrOptions, callback?)request.text(urlOrOptions)request.json(urlOrOptions)
request-modern is an independent alternative or migration helper for projects moving away from request. It is not affiliated with the original package maintainers or project.
For release context, see the local migration guide, examples, compatibility notes, source metadata, and adoption plan.