cookie-browser
v1.0.0
Published
jstools cookie module
Downloads
32
Readme
cookie-browser
Installation
npm install cookie-browser --save
or
bower install cookie-browser --save
Quick Usage
$cookie.set(cookieName, cookieValue)
$cookie.set('foo', 'var')
$cookie.get(cookieName);
$cookie.get('foo')
// returns 'bar'
$cookie.remove(cookieName);
$cookie.remove('foo');
Full Usage
$cookie.set(cookieName, cookieValue, 'Fri, 31 Dec 9999 23:59:59 GMT' {UTC Format}, path, domain, secure)