wookie
Basic HTTP cookie handling for node or browsers.
Usage
var cookie = ; cookie; // 'foo'
API
wookie.set(name, value, expires, path, domain)
Sets a cookie to document.cookie
.
wookie.get(name)
Returns the name of a set cookie.
wookie.setObject(object, expires, path, domain)
Set multiple cookies using an object, property name corresponds to the cookie name.
wookie.getObject()
Returns all cookies for a domain as an object.
wookie.unset(name)
Remove a cookie of a given name.
wookie.clear()
Removes all cookies for a domain.
Tests
npm -g browserifynpm -g testlingnpm test
Licence
BSD