uc-cookie
v1.0.0
Published
Cookie parser
Downloads
2
Maintainers
Readme
Unchained UI
Cookie
Cookie parser
Usage
import cookie from 'uc-cookie'
cookie.set('name', 'value', new Date())
console.log(cookie.get('name'))
cookie.remove('name')
Methods
set(name, value[, expires])
Sets the cookie. expires
should be a Date
instance
get(name)
Return cookie value or null
remove(name)
Removes cookie
License MIT
© velocityzen