You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

lightcookie

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lightcookie

Super lightweight cookie parser and serializer

1.0.25
latest
Source
npm
Version published
Weekly downloads
112K
-7.83%
Maintainers
1
Weekly downloads
 
Created
Source

lightcookie logo

Super lightweight cookie parser and serializer

Full documentation | GitHub | NPM

Installation

npm i --save lightcookie
const lightcookie = require('lightcookie')

lightcookie.parse('foo=bar; copyright=%C2%A9;another=test') // {foo: 'bar', copyright: '©', another: 'test'}
lightcookie.serialize({
	name: 'Ethan',
	'HttpOnly': null
}) // 'name=Ethan;HttpOnly'

Why lightcookie?

lightcookie is super lightweight. It's over much more lightweight than cookie, another popular cookie package. lightcookie is the way to go for efficiency as it parses using JS regular expressions!

Documentation

Have a look at the full documentation for details about using the library!

Keywords

cookie

FAQs

Package last updated on 14 Jun 2021

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