A Web Storage-based cookie store for the tough-cookie library, version 1.0.0. It provides a CookieJar store implementation backed by localStorage or sessionStorage, enabling persistent cookie storage in browser environments. Key differentiator: simple integration with browser storage, no extra dependencies beyond tough-cookie. Low maintenance, stable API.
npm install tough-cookie-web-storage-storeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a CookieJar with WebStorage-backed store, setting and getting a cookie synchronously.
Use jar.setCookie(cookie, url, callback) or async/await with tough-cookie's promise API.
Monitor storage usage, avoid storing excessive cookies, or implement custom eviction.
Only use this store to manage cookies, avoid tampering with internal keys.
npm install tough-cookie@^2.0.0
Use sessionStorage or mock storage; or wrap in browser check.
Use const WebStorageCookieStore = require('tough-cookie-web-storage-store').default;