kad-localstorage-js

0.0.9 • Public • Published

kad-localstorage

Build Status Coverage

Browser Support

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. Running ./tests.js will execute the Node tests only.

License

MIT

/kad-localstorage-js/

    Package Sidebar

    Install

    npm i kad-localstorage-js

    Weekly Downloads

    6

    Version

    0.0.9

    License

    MIT

    Last publish

    Collaborators

    • tdelaet