Skip to main content

Built and signed on GitHub Actions

A Deno KV store adapter for the tough-cookie.

This package works with Deno
This package works with Deno
JSR Score
100%
Published
a month ago (0.2.1)

tough-cookie-deno-kv-store

Deno JS JSR JSR Score codecov.io Code Coverage

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.

Installation

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";

Usage

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);

License

This project is licensed under the MIT License.

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@bluescorpian/tough-cookie-deno-kv-store

Import symbol

import * as tough_cookie_deno_kv_store from "@bluescorpian/tough-cookie-deno-kv-store";

---- OR ----

Import directly with a jsr specifier

import * as tough_cookie_deno_kv_store from "jsr:@bluescorpian/tough-cookie-deno-kv-store";