Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 648 Bytes

readme.md

File metadata and controls

37 lines (21 loc) · 648 Bytes

Unchained UI

Cookie

NPM Version NPM Downloads

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