# kad-localstorage

> An interface to localStorage for kad

Latest version **0.0.9** (published 2016-12-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install kad-localstorage
pnpm add kad-localstorage
yarn add kad-localstorage
bun add kad-localstorage
```

## 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.9 |
| Published | 2016-12-22 |
| First published | 2015-10-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | omphalos |
| Maintainers | omphalos |
| Keywords | localStorage, storage, kad, kademlia, dht |

## Links

- npm: https://www.npmjs.com/package/kad-localstorage
- Repository: https://github.com/omphalos/kad-localstorage
- Issues: https://github.com/omphalos/kad-localstorage/issues
- npm.io page: https://npm.io/package/kad-localstorage

## Dependencies (1)

- [dom-storage](https://npm.io/package/dom-storage.md) ^2.0.1

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 0.0.9 (latest) — 2016-12-22
- 0.0.8 — 2016-12-22
- 0.0.7 — 2015-12-21
- 0.0.5 — 2015-10-12
- 0.0.4 — 2015-10-12
- 0.0.3 — 2015-10-12
- 0.0.2 — 2015-10-12

## README

kad-localstorage
================

[![Build Status](https://secure.travis-ci.org/kadtools/kad-localstorage.png)
](http://travis-ci.org/kadtools/kad-localstorage)
[![Coverage](https://coveralls.io/repos/kadtools/kad-localstorage/badge.svg)
](https://coveralls.io/github/kadtools/kad-localstorage)

[![Browser Support](https://saucelabs.com/browser-matrix/kadlocalstorage.svg)
](https://saucelabs.com/u/kadlocalstorage)

An interface to localStorage for kad.

Installation
============

    npm install kad-localstorage

Usage
=====

    var kad = require('kad')
    var KadLocalStorage = require('kad-localStorage')

    var dht = kad({
      // ...
      storage: new KadLocalStorage('label')
    })

The `'label'` is used to namespace your data in localStorage.

Tests
=====

To run all the tests, you'll need a
[.zuulrc](https://github.com/defunctzombie/zuul/wiki/Zuulrc).
Running `./tests.js` will execute the Node tests only.

License
=======

MIT

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