@wasm-lab/core
v2.1.4
Published
A lightweight and type-safe cookie utility for the browser — with JSON parsing, size warnings, and full TypeScript support.
Readme
🍪 cookies-core
A lightweight and type-safe cookie utility for the browser — with JSON parsing, size warnings, and full TypeScript support.
✨ Features
- Set, get, delete cookies easily
- JSON support with fallback to raw strings
- Optional raw mode for tokens or plain values
- Handles expiration, secure flag, and SameSite
- Warns if cookie exceeds 4096 bytes
- Tiny footprint and no dependencies
