Skip to content

bluescorpian/tough-cookie-deno-kv-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Deno KV store adapter for the tough-cookie.

Resources

Stars

Watchers

Forks