Rob--W / cors-anywhere

CORS Anywhere is a NodeJS reverse proxy which adds CORS headers to the proxied request.
MIT License
8.57k stars 5.99k forks source link

Add cli script for bin #398

Closed paulshen closed 2 years ago

paulshen commented 2 years ago

Adds cli script and exposes it as the package binary. Supports -p --port flag for choosing port and -h --host flag for choosing host.

related #104 and #35

paulshen commented 2 years ago

makes sense! the idea was that you could then run cors anywhere with just npx cors-anywhere --port 5000 without other installation steps.

looking around, https://github.com/fjc0k/cors-anywhere-cli does the same