# koekje

> A sessionStorage interface for cookies

Latest version **0.2.0** (published 2019-08-13) · MIT license · 0 weekly downloads

## Install

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

## 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.2.0 |
| Published | 2019-08-13 |
| First published | 2014-12-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Arnout Kazemier |
| Maintainers | 3rdeden, v1 |
| Keywords | koekje, storage, cookie, cookies, dom, dom-storage |

## Links

- npm: https://www.npmjs.com/package/koekje
- Repository: https://github.com/3rd-Eden/koekje
- Issues: https://github.com/3rd-Eden/koekje/issues
- npm.io page: https://npm.io/package/koekje

## Dependencies (2)

- [koekiemonster](https://npm.io/package/koekiemonster.md) 2.2.x
- [querystringify](https://npm.io/package/querystringify.md) 2.1.x

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2019-08-13
- 0.1.0 — 2017-06-19
- 0.0.4 — 2015-10-05
- 0.0.3 — 2015-09-16
- 0.0.2 — 2014-12-17
- 0.0.1 — 2014-12-17
- 0.0.0 — 2014-12-16

## README

# koekje

Koekje is dutch for `cookie` and it's also DOM Storage API compatible storage
layer for storing data in a... **cookie**.

## Installation

This module was designed with browserify in mind and can be installed from the
public npm registry:

```
npm install --save koekje
```

## Usage

In all examples we assume that you've required the module as:

```js
'use strict';

var koekje = require('koekje');
```

The API is we expose is compatible with the API of the DOM Storage methods. They
can be found at:

https://developer.mozilla.org/en-US/docs/Web/API/Storage

```js
koekje.setItem('foo', 'bar');  // Returns undefined and stores the value.
koekje.getItem('bar');         // Not found, returns null.
koekje.getItem('foo');         // Returns `bar`.
koekje.length;                 // 1
koekje.removeItem('foo');      // Returns undefined, length is now 0.
koekje.clear();                // Returns undefined and clears all items.
```

## License

[MIT](LICENSE)

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