kukki
v2.0.1
Published
A simple cookie manager.
Downloads
22
Maintainers
Readme
Kukki
A static cookie manager that behaves like a Map.
Installation
npm install kukki
Usage
import { Kukki } from "kukki";
// Create a new cookie.
Kukki.set("key", "value");
Kukki.get("key"); // => "value"
// Create a persistent cookie.
const date = new Date();
date.setFullYear(date.getFullYear() + 2);
Kukki.set("persistentCookie", "persistentValue", { expires: date });
Contributing
Maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.