File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,10 +56,10 @@ Position httpSandwich between your client and server:
5656
5757``` bash
5858# Natural language syntax (recommended)
59- httpSandwich between 8000 and localhost:3000
59+ npx httpsandwich between 8000 and localhost:3000
6060
6161# Traditional flag syntax
62- httpSandwich --from 8000 --to localhost:3000
62+ npx httpsandwich --from 8000 --to localhost:3000
6363```
6464
6565Now point your client to ` localhost:8000 ` instead of ` localhost:3000 ` . All traffic flows through httpSandwich and is displayed in real-time.
@@ -68,16 +68,16 @@ Now point your client to `localhost:8000` instead of `localhost:3000`. All traff
6868
6969``` bash
7070# Monitor traffic to a local API server
71- httpSandwich between 8080 and localhost:3000
71+ npx httpsandwich between 8080 and localhost:3000
7272
7373# Proxy to a remote service
74- httpSandwich between 9000 and api.example.com:443
74+ npx httpsandwich between 9000 and api.example.com:443
7575
7676# Start with minimal output (dots only)
77- httpSandwich between 8000 and 5009 --level 1
77+ npx httpsandwich between 8000 and 5009 --level 1
7878
7979# Keep more history in memory
80- httpSandwich between 8000 and 5009 --history 500
80+ npx httpsandwich between 8000 and 5009 --history 500
8181```
8282
8383## Interactive Controls
You can’t perform that action at this time.
0 commit comments