@miniflare/storage-file
TypeScript icon, indicating that this package has built-in type declarations

2.14.2 • Public • Published

@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

Package Sidebar

Install

npm i @miniflare/storage-file

Weekly Downloads

83,358

Version

2.14.2

License

MIT

Unpacked Size

15.3 kB

Total Files

5

Last publish

Collaborators

  • wrangler-publisher