Skip to content

socketsupply/indexed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SYNOPSIS

A small async/await wrapper around IndexedDB.

EXAMPLE

import Indexed from '@socketsupply/indexed'

const db = await Indexed.open('example')

const { err: errPut } = await db.put('foo', 100)
const { err: errGet, data } = await db.get('foo')

console.log(data === 100)

INSTALL

npm install @socketsupply/indexed

TEST

npm run test

API

See docs and tests for more info.