@novely/flex-storage
v0.2.1
Published
Storage for @novely/core
Downloads
79
Readme
@novely/flex-storage
Flex storage uses seroval for serializing/deserializing and lz-string for compression/decompression.
Usage
import { flexStorage, adapterLocalStorage, cloneFunction } from '@novely/flex-storage';
const storage = flexStorage({
adapter: adapterLocalStorage()
})
const engine = novely({
...,
storage,
cloneFunction
});