@zthun/dalmart-storage
v1.6.5
Published
A database interface to local and session storage.
Readme
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-storageUsage
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.