localdown

A localStorage implementation of the LevelDOWN API

Usage no npm install needed!

<script type="module">
  import localdown from 'https://cdn.skypack.dev/localdown';
</script>

README

localdown

A localStorage implementation of the LevelDOWN API

About

LocalDOWN is a drop-in replacement for LevelDOWN that uses node-localstorage to persist changes.

Example (ES6)

import localdown from 'localdown';
import levelup from 'levelup';

const db = levelup(localdown('./mydb'));

db.put('foo', 'bar');

Constructor

localdown(location[,quota])

  • location - file path
  • quota - storage quota, optional