MCPcopy Create free account
hub / github.com/jshttp/cookie / decode

Function decode

src/stringify-cookie.spec.ts:196–196  ·  view source on GitHub ↗
(v: string)

Source from the content-addressed store, hash-verified

194 it("should roundtrip with custom encode/decode", () => {
195 const encode = (v: string) => Buffer.from(v, "utf8").toString("base64");
196 const decode = (v: string) => Buffer.from(v, "base64").toString("utf8");
197 const cookies = { data: "hello world" };
198 const str = stringifyCookie(cookies, { encode });
199 expect(parseCookie(str, { decode })).toEqual(cookies);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…