@blanik/js-cookies

Pure Javascript Cookies By Amadeusz Blanik

Usage no npm install needed!

<script type="module">
  import blanikJsCookies from 'https://cdn.skypack.dev/@blanik/js-cookies';
</script>

README

meCookies

By Amadeusz Blanik

The only one pure JavaScript Cookies which use same time format as Jira!

How to use


Download one of following package:

Then…

<script src="mecookies.js"></script> 
<script> 
let meCookie = new MeCookies()
meCookie.set("hello", "world", "7d")
</script>

Devmode

let meCookie = new MeCookies(true)

Options


Set

meCookie.set(
    name, 
    value, 
    time, ~ eg. "1y 2m 7d 8h"
    path ~ default path = "/"
   )
Time
y - years
m - months
d - days
h - hours

Get

meCookie.get(name)