This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

lightcookie

1.0.25 • Public • Published

lightcookie logo


Super lightweight cookie parser and serializer

Full documentation | GitHub | NPM

Installation

npm i --save lightcookie

Parsing cookie strings

const lightcookie = require('lightcookie')

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

Serializing objects to cookie strings

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!

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i lightcookie

    Weekly Downloads

    102,894

    Version

    1.0.25

    License

    SEE LICENSE IN LICENSE.md

    Unpacked Size

    4.34 kB

    Total Files

    4

    Last publish

    Collaborators

    • ethan_