1.1.5 • Published 4 years ago

@sraleik/meta-storage v1.1.5

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

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')
1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago