A lightweight package (v1.1.0, no breaking changes yet) that proxies Express requests to Axios and sends back the response. It simplifies forwarding HTTP requests from an Express server to another URL using Axios, handling method, headers, query, and body automatically. Ships TypeScript types. Main differentiator: minimal abstraction over manual Express-to-Axios forwarding, reducing boilerplate while maintaining full control. Release cadence is ad-hoc with no frequent updates. Suitable for simple proxy use cases but lacks advanced features like load balancing or caching found in dedicated proxy libraries.
npm install axios-express-proxyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an Express server that proxies incoming requests to another URL using the Proxy function.
Call Proxy as the final handler; do not attempt to send the response after Proxy returns.
Wrap Proxy call in try-catch or attach .catch() to the returned promise.
Pin version in package.json and review changelog before upgrading.
For large responses, consider using http-proxy-middleware instead.
Validate the target URL before passing to Proxy.
Use `import { Proxy } from 'axios-express-proxy';`Run `npm install axios-express-proxy` and verify package.json.
Ensure the target URL is correct and the server is running.
Ensure the second argument to Proxy is an Express response object.