# airplane-mode

> quick http cache for offline development

Latest version **0.0.5** (published 2014-11-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install airplane-mode
pnpm add airplane-mode
yarn add airplane-mode
bun add airplane-mode
```

Provides the command `airplane-mode`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2014-11-30 |
| First published | 2014-11-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 41 |
| Author | jeremiak |
| Maintainers | jeremiak |
| Keywords | http, offline, airplane, cache |

## Links

- npm: https://www.npmjs.com/package/airplane-mode
- Repository: https://github.com/jeremiak/airplane-mode
- Issues: https://github.com/jeremiak/airplane-mode/issues
- npm.io page: https://npm.io/package/airplane-mode

## Dependencies (4)

- [colors](https://npm.io/package/colors.md) ^1.0.3
- [express](https://npm.io/package/express.md) ^4.10.2
- [request](https://npm.io/package/request.md) ^2.48.0
- [portfinder](https://npm.io/package/portfinder.md) ^0.2.1

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2014-11-30
- 0.0.4 — 2014-11-30

## README

# :airplane: airplane-mode - a quick http cache

## purpose

provide an easy to set up http cache for offline development.

with airplane-mode you can cache any url (headers and response) easily so that when your internet connection isn't reliable you can still develop features.

## wait, but why?

over the past few weeks i've spent quite a bit of time on airplanes. on my last trip, i wanted to write a bit of client-side d3 but because the page required an API response for the data, i was stuck with either paying for expensive (yet shitty) airplane internet or just not doing development. those seemed like a bad set of options.

airplane-mode is a quick solution to that problem. now i/you can easily cache a few responses you know you'll need for offline development and then not worry about connectivity.

## installation & usage

run `npm install -g airplane-mode`

once installed, just use the command `airplane-mode` to run.

now you can easily populate your cache, by prefixing all of the requests you want cached with `http://0.0.0.0:3000`.

for example, if i wanted the JSON from `developer.trade.gov/api.json` to be available through the cache, i simply need to make a request to `http://0.0.0.0:3000/developer.trade.gov/api.json`

the cache is an in-memory cache that lasts for the lifespan of the application. resetting the cache is easy: just restart airplane-mode.

currently, airplane-mode doesn't support `https` but hopefully that will change in the near future

if you want to take a look at the current contents of the cache at anytime, just visit `http://0.0.0.0:3000/cache`

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