Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

Version published
Weekly downloads
264K
increased by31.93%
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

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

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