cookie parsing and serialization for the browser!
npm install cookie-jscookie-js is a basic cookie parser and serializer for web browsers. It was forked from https://github.com/defunctzombie/node-cookie. It doesn't make assumptions about how you are going to deal with your cookies. It basically just provides a way to read and write the HTTP cookie headers.
See RFC6265 for details about the http header for cookies.
```
bower install cookie-js
`javascript
var hdr = cookiejs.serialize('foo', 'bar');
// hdr = 'foo=bar';
var cookies = cookiejs.parse('foo=bar; cat=meow; dog=ruff');
// cookies = { foo: 'bar', cat: 'meow', dog: 'ruff' };
``
The serialize function takes a third parameter, an object, to set cookie options. See the RFC for valid values.