@memsdb/storage-localstorage
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

A storage engine for MemsDB. This engine will store the data for a document in the browsers localStorage. Each document will be a seperate entry in localStorage where the ID of the document is the key.

The data can be retrieved via doc.data

import { DB } from '@memsdb/core'
import { LocalStorage } from '@memsdb/storage-localstorage'

const db = new DB('test', {
  backupProvider: new LocalStorage(),
})

Install

DownloadsWeekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

4.23 kB

Total Files

12

Last publish

Collaborators

  • brocococonut