1.1.0 • Published 4 years ago

sweet-cookie v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

To create a cookie:

setCookie(key, value, options)

optional argument; options = { expires, path } expires for cookie expiry date and path for cookie path

To append to an existing cookie:

appendCookie(key, value, specialCharacter)

specialCharacter: the character between cookie values. it is optional, default value is comma.

To convert the cookie into an object:

parseCookie()

To get a specific cookie:

getCookie(key)

to delete a cookie:

deleteCookie(key)