cookie-lite: Lightweight Cookie Parser and Serializer
JSON →cookie-lite is a super lightweight JavaScript library designed for parsing and serializing HTTP cookie strings. It serves as a friendly fork of the `lightcookie` package, which was deprecated by its original author. The library focuses on efficiency and a minimal footprint, utilizing JavaScript regular expressions for its parsing logic, making it a smaller and faster alternative compared to more feature-rich cookie handling packages. Currently at version 0.0.2, it supports Node.js environments from version 18 onwards. Its primary differentiator is its minimal resource consumption and speed for fundamental cookie operations, suitable for applications where performance and size are critical. It offers straightforward methods for converting raw cookie strings into objects and vice versa, providing core functionality without extensive configuration or advanced features like signed cookies or complex attribute validation. Its simple API aims for ease of integration for basic cookie management tasks.
Traffic · last 30 days ↓50% vs prev 7d
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇩🇪 Germany · 🇫🇷 France · 🇬🇧 United Kingdom