1.4.1 • Published 3 months ago
@zthun/dalmart-storage v1.4.1
Dalmart Storage
This package supplies the implementation for a dalmart layer that connects to local and session storage in the browser.
Installation
npm install @zthun/dalmart-storage
yarn add @zthun/dalmart-storage
Usage
import { IZDatabaseMemory } from '@zthun/dalmart-db';
import { ZDatabaseStorage } from '@zthun/dalmart-storage';
const local: IZDatabaseMemory = new ZDatabaseStorage(localStorage);
const session: IZDatabaseMemory = new ZDatabaseStorage(sessionStorage);
// Do things with local and session.