pretzel
v1.0.0
Published
A javascript cookie parser
Downloads
2
Readme
pretzel
A javascript cookie parser.
Install
npm install pretzel --save
Example
var pretzel = require('pretzel');
var cookieString = 'token=abc; name= pretzel; age = 20';
var parsed = pretzel(cookieString);
/*
The value of parsed is an object
{
token: 'abc',
name: 'pretzel',
age: '20'
}
*/