Biskviit is a Node.js module designed for server-side HTTP cookie management. It provides functionality to parse `Set-Cookie` headers from incoming responses, store cookie data in memory, and then generate appropriate `Cookie` headers for outgoing requests based on a specified URL. The current stable version is 2.0.0, which was last updated in August 2017. Due to its age, the package is considered to have an abandoned release cadence. Its key differentiator is its straightforward, in-memory approach to handling cookie state per instance, including basic session timeout management for cookies without explicit expiration dates. It is specifically built for Node.js environments and requires Node.js v6 or higher.
npm install biskviitVerified import paths — ran on the pinned version, not inferred.
Demonstrates initializing a Biskviit instance, setting cookies from `Set-Cookie` headers, and retrieving them for specific URLs both as a header string and as an array of objects.
Consider migrating to a more actively maintained HTTP cookie library for Node.js, especially for new projects or applications requiring robust security and modern features.
Use CommonJS `require()` syntax: `const Biskviit = require('biskviit');`. If you must use it in an ESM project, you might need to use dynamic `import()` or a CommonJS wrapper, though migration is recommended.If persistence is required, you must implement your own storage mechanism (e.g., to a file, database, or external cache) and manually load/save cookie data using Biskviit's `list` and `set` methods.
Ensure your Node.js environment is version 6.0.0 or higher. It is generally advisable to use a significantly newer, actively supported Node.js LTS version.
Biskviit is a CommonJS module. Either convert your file to CommonJS (`.js` without `"type": "module"` in `package.json`) or use dynamic `import()`: `const Biskviit = await import('biskviit').then(mod => mod.default);`.Ensure you are using `const Biskviit = require('biskviit');` and then `const biskviit = new Biskviit(options);`.Verify that the URL used with `get()` exactly matches the context for which the cookies were `set()`, considering domain, path, and secure flags. Ensure `cookieString` passed to `set()` is a valid `Set-Cookie` header value.
No dependency data recorded yet.