tough-cookie-deno-kv-store
is a Deno KV store adapter for the tough-cookie
library. This adapter allows you to store and manage cookies using Deno's key-value store.
To install tough-cookie-deno-kv-store
, use the following command:
deno add jsr:@bluescorpian/tough-cookie-deno-kv-store
or to use directly from JSR, import into a module:
import { DenoKVStore } from "jsr:@bluescorpian/tough-cookie-deno-kv-store";
import { DenoKVStore } from "jsr:@bluescorpian/tough-cookie-deno-kv-store";
import { CookieJar } from "tough-cookie";
const kv = new Deno.Kv(); // Initialize your Deno KV instance
const store = new DenoKVStore(kv, ["cookie_prefix"]);
const cookieJar = new CookieJar(store);
This project is licensed under the MIT License.