https://github.com/shubham-kv/caching-proxy-cli
File based Caching Proxy CLI tool
https://github.com/shubham-kv/caching-proxy-cli
caching-proxy cli-tool nodejs
Last synced: 2 months ago
JSON representation
File based Caching Proxy CLI tool
- Host: GitHub
- URL: https://github.com/shubham-kv/caching-proxy-cli
- Owner: shubham-kv
- License: mit
- Created: 2025-03-10T10:31:42.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-25T16:15:28.000Z (2 months ago)
- Last Synced: 2025-03-25T17:26:42.214Z (2 months ago)
- Topics: caching-proxy, cli-tool, nodejs
- Language: TypeScript
- Homepage:
- Size: 303 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CLI tool to locally cache API responses with file based caching strategy.
## Installation
Install the package globally with a node package manager.
```bash
npm i --global @shubhamkv/caching-proxy-cli
```## How to use
### Starting the server
Use the `start` command to start the proxy caching server, it requires the `url`
of the origin server and a `port` number for the proxy server:```bash
caching-proxy start https://example.com -p 4000
```This will start the caching proxy server on the specified port & cache the
responses.### Stopping the server
Closing the terminal should stop the running proxy server.
### Clearing the proxy cache
Use the `clear-cache` command to clear the entire cache of the proxy server:
```bash
caching-proxy clear-cache
```## Credits
Thanks to [Roadmap.sh | Caching Proxy CLI](https://roadmap.sh/projects/caching-server).