1.1.0 • Published 1 year ago

xck v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Cookie Package

A tiny (3kB) and secure cookie package for JavaScript.

You can set remove and get the cookies in the entire website !

  • Install
npm i xck
  • import
import { setCk, getCk, removeCk } from xck;
  • set Cookie
setCk("cookie-name", "myCookie");
  • get Cookie
const cookie = getCk("cookie-name");

console.log(cookie); //myCookie
  • remove Cookie
removeCk("cookie-name");