Skip to content

@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";
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.
Name Summary
UnstorageStorageOptions Options for createUnstorageStorage.
Name Summary
UnstorageKvStorage The unstorage storage (no optional capabilities).