A command-line proxy tool that wraps the http-proxy library to provide simple HTTP/HTTPS request forwarding. Current stable version 2.1.0. Development appears slow with few releases. Key differentiator: zero-config CLI for quick proxy setups with route mapping, header injection, and host header preservation. Unlike full-featured proxies like mitmproxy or nginx, this is a lightweight, single-binary style tool for development and testing.
npm install http-proxy-cliVerified import paths — ran on the pinned version, not inferred.
Forwards all HTTP requests to a local server on port 3000. Use in a separate terminal while running a Node.js app.
Use --header 'Host: ...' manually if needed.
Place more specific routes earlier.
Consider alternatives like http-proxy-middleware or work with the underlying library directly.
Use a port above 1024, e.g., http-proxy 8080
Kill the conflicting process or use a different port with --port.