Becklyn / mojave

A library of commonly used JavaScript tools and helpers by Becklyn
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Add support for cookie #82

Closed keichinger closed 6 years ago

keichinger commented 6 years ago

To reduce external dependencies it'd be pretty handy to have a native support to get, set and remove cookies.

There's already a great amount of cookie libs with a small footprint that we can have a look at:

https://github.com/js-cookie/js-cookie https://github.com/fend25/strg.js https://github.com/florian/cookie.js

From the API standpoint my favourite is JsCookie, which even handles JSON out of the box, which is something we should do as well.