# koa-session-memory

> koa-session memory store

Latest version **1.0.4** (published 2020-04-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install koa-session-memory
pnpm add koa-session-memory
yarn add koa-session-memory
bun add koa-session-memory
```

## 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.4 |
| Published | 2020-04-14 |
| First published | 2017-11-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | kalvin |
| Maintainers | kalvin |

## Links

- npm: https://www.npmjs.com/package/koa-session-memory
- Repository: https://github.com/kalvinarts/koa-session-memory
- Homepage: https://github.com/kalvinarts/koa-session-memory#readme
- Issues: https://github.com/kalvinarts/koa-session-memory/issues
- npm.io page: https://npm.io/package/koa-session-memory

## Dependencies (1)

- [debug](https://npm.io/package/debug.md) ^3.1.0

## Recent versions

- 1.0.4 (latest) — 2020-04-14
- 1.0.3 — 2020-02-22
- 1.0.2 — 2017-11-02
- 1.0.1 — 2017-11-02
- 1.0.0 — 2017-11-02

## README

# koa-session-memory

## Basic memory storage for [koa-session](https://www.npmjs.com/package/koa-session)

### Installation

Install with `npm install koa-session-memory`

### Additional features

This store emits a `changed` event every time a session is changed, containing:

```javascript
{
  key,
  session,
}
```

### Usage

```javascript
const Koa = require('koa');
const MemoryStore = require('koa-session-memory');
const session = require('koa-session');

const app = new Koa();
const store = new MemoryStore();

app.keys = [ 'put your session secret here' ];
app.use(session({
  store,
  key: 'koa:sess',
  maxAge: 86400000,
}), app);
```

### Coffee contributions accepted ;)

As you may know developers fuel is coffee.

Now that Github enabled **BAT Rewards**, if you are using [Brave Browser](https://brave.com/kal004) and feel that I deserve some coffee you can send me a tip or set a monthly contribution.

If you are still not using [Brave Browser](https://brave.com/kal004), you can download it using [this link]() and I will get some BAT to buy more coffee ;)

[Brave Browser](https://brave.com/kal004) is a superfast browser based in Chrome with integrated ad blocking and anti-tracking features. [Give it a try](https://brave.com/kal004)!

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