@sraleik/meta-storage
v1.1.5
Published
## Description
Downloads
12
Readme
Meta-Storage
Description
Simple overlay on bluzelle Connection
- Strigify data before save
- JSON.parse data on read
- add a set function that create or update key when needed
Installation
npm install @sraleik/meta-storage
yarn add @sraleik/meta-storage
pnpm add @sraleik/meta-storage
Usage
const { createMockBluzelle } = require('@sraleik/mock-bluzelle'); //Or any kind of bluzelle connection
const { createMetaStorage } = require("@sraleik/meta-storage");
const mockBluzelle = await createMockBluzelle();
const metaStorage = await createMetaStorage(mockBluzelle);
await metaStorage.set('lol', {winner: 'chickenDinner'})
res = await metaStorage.read('lol')