dash
dash copied to clipboard
IDB since 2011
dash

A cookie-sized JavaSript library wrapping the IndexedDB "HTML5" database API.
Key Features
- Simplified callbacks through promises
- Transaction and optionally version-free
- Declarative databases, object stores and indexes
- 5KB gzipped (18KB uncompressed)
- Tests passing Chrome 61.0.3163
Installation Options
Up And Running
/* There's no setup required to get started using IndexedDB with dash. */
/* Just start adding entries and any declared databases, object stores and
* indexes will be provided */
dash.add.entry({
database: 'foo',
store: 'bar',
data: { baz: new Date().getTime() }
})((add) => {
dash.get.entry(add)((get) => {
console.log('Data', get.entry)
});
});
Developer Features
- Free (MIT Licensed)
- Task-based Development Workflow
- Automated Jasmine Testing
- Coverage Testing
- Continuous Integration and Coverage Reporting
To Test
npm install
grunt
Building requires grunt-cli