@xtandard/kit/storage/unstorage
@xtandard/kit/storage/unstorage — wrap any unstorage Storage
(any driver) as a KvStorage, with lossless key encoding and read-through to legacy keys.
Optional peer: unstorage (you construct the instance; this subpath only imports its type).
import { … } from "@xtandard/kit/storage/unstorage";Functions
Section titled “Functions”| Name | Summary |
|---|---|
createUnstorageStorage |
Create a KvStorage backed by an unstorage Storage instance. unstorage serializes JSON values, so values round-trip structurally; missing keys read back as null. |
Interfaces
Section titled “Interfaces”| Name | Summary |
|---|---|
UnstorageStorageOptions |
Options for createUnstorageStorage. |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
UnstorageKvStorage |
The unstorage storage (no optional capabilities). |