localdbstore
v0.0.1
Published
A thin Web Storage API wrapper around IndexedDB
Downloads
2
Maintainers
Readme
localdbstore
A thin Web Storage API wrapper around IndexedDB.
Similar to localForage except much lighter since it only supports IndexedDB.
API
API is identical to Web Storage API except that:
the
length
property is missing and replaced withcount()
, since the underlying database may be asynchronously updated by a different set of code.there is a constructor that must be provided with a database name. For convenience, the constructor takes a second options argument that defaults to,
{clear:false}
. Ifclear
istrue
, then the database will be cleared during the constructor call. The database is created automatically if it does not exist and is automatically opened.all function calls return Promises
Release History (reverse chronological order)
v0.0.1 2017-07-31 ALPHA Initial public release