Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anywhichway/localdbstore
A thin Web Storage API wrapper around IndexedDB
https://github.com/anywhichway/localdbstore
Last synced: about 4 hours ago
JSON representation
A thin Web Storage API wrapper around IndexedDB
- Host: GitHub
- URL: https://github.com/anywhichway/localdbstore
- Owner: anywhichway
- License: mit
- Created: 2017-08-01T20:16:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-01T21:00:39.000Z (over 7 years ago)
- Last Synced: 2024-11-07T10:04:28.657Z (8 days ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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:
1) the `length` property is missing and replaced with `count()`, since the underlying database may be asynchronously
updated by a different set of code.2) 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}`. If `clear` is `true`, then the database will be cleared during the constructor call. The database is created
automatically if it does not exist and is automatically opened.3) all function calls return Promises
# Release History (reverse chronological order)
v0.0.1 2017-07-31 ALPHA Initial public release