cookie-getter
Super simple, performant, clientside CommonJS cookie reader and nothing else.
CommmonJS and clientmodules compatible.
Why publish another cookie tool?
Dead simple 4-line function that has the best performance according to: http://jsperf.com/cookie-parsing
Handy to have as a seperate module for easy installation with npm and clientmodules.
Usage
installing:
npm install cookie-getter
using:
var cookies = require('cookie-getter');
var username = cookies('username');
user = cookies('user');
console.log(user.firstName);
License
MIT