request-promise-modern is a promise-first migration helper for the deprecated request-promise package. Version 0.1.0 wraps the native fetch API (Node >=18) to provide familiar promise-returning HTTP request methods with support for resolveWithFullResponse behavior. It ships TypeScript types, has zero runtime dependencies, and is released sporadically on GitHub. Key differentiator: bridges the gap for codebases migrating from request-promise without switching to a new API paradigm, while being lightweight and modern.
npm install request-promise-modernNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic GET request, JSON parsing, and full response capture using resolveWithFullResponse.
Upgrade Node.js to v18 or later.
Use import syntax or switch to dynamic import() if you must use CommonJS.
Consult the compatibility guide or check the source for supported options.
Use default import to access convenience methods.
Check the returned object shape and adjust your code accordingly.
Add "type": "module" in package.json, or rename file to .mjs, or use dynamic import: const rp = await import('request-promise-modern');Use default import: import rp from 'request-promise-modern';
Upgrade Node.js to v18 or later, or use a polyfill like node-fetch.
Ensure you pass resolveWithFullResponse: true in options object and that the request succeeds. Inspect response object keys.
No dependency data recorded yet.