@miniflare/storage-file
v2.14.4
Published
File-system storage module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers
Downloads
347,568
Maintainers
Readme
@miniflare/storage-file
File-system storage module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers.
Example
import { KVNamespace } from "@miniflare/kv";
import { FileStorage } from "@miniflare/storage-file";
const ns = new KVNamespace(new FileStorage("./data"));
await ns.put("key", "value");
console.log(await ns.get("key")); // value