kukki
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

Kukki

CI Version Dependencies

A static cookie manager that behaves like a Map.

Documentation

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.

Package Sidebar

Install

npm i kukki

Weekly Downloads

0

Version

2.0.1

License

Zlib

Unpacked Size

8.1 kB

Total Files

7

Last publish

Collaborators

  • vanruesc