Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

biskviit

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

biskviit

Yet another module for http cookie handling

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is biskviit?

Biskviit is a lightweight cookie parser and serializer for Node.js. It allows you to easily handle HTTP cookies, including parsing cookie headers and creating cookie strings.

What are biskviit's main functionalities?

Parse Cookies

This feature allows you to parse a cookie header string into an object. The code sample demonstrates how to use Biskviit to parse a cookie string into a JavaScript object.

const Biskviit = require('biskviit');
const biskviit = new Biskviit();
const cookies = biskviit.parse('name=value; name2=value2');
console.log(cookies);

Create Cookie String

This feature allows you to create a cookie header string from an object. The code sample shows how to use Biskviit to convert a JavaScript object into a cookie string.

const Biskviit = require('biskviit');
const biskviit = new Biskviit();
const cookieString = biskviit.create({name: 'value', name2: 'value2'});
console.log(cookieString);

Set Cookie

This feature allows you to set a cookie with various options such as expiration time. The code sample demonstrates how to set a cookie with an expiration time using Biskviit.

const Biskviit = require('biskviit');
const biskviit = new Biskviit();
biskviit.set('name', 'value', {expires: new Date(Date.now() + 3600 * 1000)});
console.log(biskviit.cookies);

Other packages similar to biskviit

Keywords

FAQs

Package last updated on 14 Sep 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc