Skip to content

unchainedui/cookie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published