jaywcjlove / cookie.js

:cookie: A simple, lightweight JavaScript API for handling browser cookies , it is easy to pick up and use, has a reasonable footprint(~2kb, gzipped: 0.95kb), and has no dependencies. It should not interfere with any JavaScript libraries or frameworks. https://jaywcjlove.github.io/cookie.js/
https://jaywcjlove.github.io/cookie.js
184 stars 55 forks source link

Expose the cookie as a string #19

Open root-io opened 2 years ago

root-io commented 2 years ago

I would love to get the cookie as a string instead of only having document.cookie set. I need to set cookies using the Set-Cookie header, server side.