bbg-cookie
v1.0.0
Published
reset css
Downloads
2
Readme
usage
Installation
npm install mk-cookie
Methods
#.set(name, value, obj);
set cookie
@param name {string}
@param value {string}
@param obj {object} [
expires {number} //expires time
path {string}
domain {string}
]
@example cookie.set('name', 'value', {expires: 30});
#.get(name);
get cookie value
@param name {string}
@return {string}
@example cookie.get('name') => 'value'