xck

1.1.0 • Public • Published

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");

Package Sidebar

Install

npm i xck

Weekly Downloads

2

Version

1.1.0

License

ISC

Unpacked Size

2.88 kB

Total Files

4

Last publish

Collaborators

  • aliho3ein