Cookie-es is a rework of npm cookie package that is intended to parse Cookie header (from browser -> server)
Another format of cookie is Set-Cookie header (from server -> browser) and has different semantics for example allows single value attributes like HttpOnly (https://github.com/unjs/cookie-es/issues/17,) which are not supported nor intended for Cookie header that we support parsing for.
set-cookie-parser is a good candidate to use as bases since is already well-tested.
Cookie-es is a rework of npm cookie package that is intended to parse
Cookie
header (from browser -> server)Another format of cookie is
Set-Cookie
header (from server -> browser) and has different semantics for example allows single value attributes likeHttpOnly
(https://github.com/unjs/cookie-es/issues/17,) which are not supported nor intended forCookie
header that we support parsing for.set-cookie-parser is a good candidate to use as bases since is already well-tested.