cloudflare-kv-isomorphic
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

cloudflare-kv-isomorphic

Use Cloudflare Worker KV locally in NodeJS and in production using the same API

Usage

import KV from "cloudflare-kv-isomorphic";

const MY_NAMESPACE = KV("MY_NAMESPACE");

await MY_NAMESPACE.put("key", "value");
await MY_NAMESPACE.get("key");

Package Sidebar

Install

npm i cloudflare-kv-isomorphic

Weekly Downloads

1

Version

0.0.9

License

MIT

Unpacked Size

5.01 kB

Total Files

5

Last publish

Collaborators

  • raeesbhatti