
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Yet another node module for handling http cookies. This module parses Set-Cookie
header, stores the data to memory and returns valid value for Cookie
header once needed based on the stored cookie data.
NB Requires iojs or Node v4+ to support some ES6 features used by this module. Might work with older Node versions as well but not tested
Install from npm
npm install biskviit --save
Require as Biskviit
var Biskviit = require('biskviit');
Create a cookie managing biskviit instance
var biskviit = new Biskviit(options);
Where
Example
var Biskviit = require('biskviit');
var biskviit = new Biskviit({
sessionTimeout: 5 * 60 // expire cookies after 5 minutes
});
To add new cookies to the storage use set
biskviit.set(cookieString, url)
Where
Set-Cookie:
headerExample
biskviit.set('theme=light', 'http://example.com/');
biskviit.set('sessionToken=abc123; Expires=Wed, 09 Jun 2021 10:18:14 GMT', 'http://example.com/');
To list all available cookies for a specified URL use get
var cookiesString = biskviit.get(url);
Where
Example
var cookiesString = biskviit.get('http://example.com/');
// theme=light; sessionToken=abc123
If you need to filter cookies as objects, use list
var cookiesString = biskviit.list(url);
Where
Example
var cookiesString = biskviit.list('http://example.com/');
// [{key: 'theme', value: 'light', expires: ...}, {key: 'sessionToken', value: 'abc123', expires: ...}]
MIT
FAQs
Yet another module for http cookie handling
We found that biskviit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.