# servercache

> Cache server responses. Useful for working on the front end

Latest version **1.0.0** (published 2015-07-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install servercache
pnpm add servercache
yarn add servercache
bun add servercache
```

Provides the command `servercache`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-07-29 |
| First published | 2015-07-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Aravind Ramanathan |
| Maintainers | indianburger |
| Keywords | server, cache, front-end, file |

## Links

- npm: https://www.npmjs.com/package/servercache
- npm.io page: https://npm.io/package/servercache

## Dependencies (1)

- [yargs](https://npm.io/package/yargs.md) ^3.15.0

## Recent versions

- 1.0.0 (latest) — 2015-07-29

## README

# servercache
Cache a server using files. Useful for front end development.

# Install
```npm install -g servercache```

# Run
```

servercache --host my-server-host [--port port-number-to-run]

# Example
# my backend server runs on localhost on port 8888
# I want to run servercache on port 9999
servercache --host localhost:8888 --port 9999
# hit backend server through servercache
curl localhost:9999/some-path # cache miss, will save the response as a file
curl localhost:9999/some-path # cache hit, will read file and return response
```

# Build/Develop
```
npm install -g babel
# Build javascript
babel -d dist src

# Run server
node dist/server.js --host my-server-host
  # or
babel-node src/server.js --host my-server-host
```

---
_Source: https://npm.io/package/servercache · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
