Skip to content

Commit

Permalink
docs(README.md): add output to code examples in parseCookies and seri…
Browse files Browse the repository at this point in the history
…alizeCookie functions
  • Loading branch information
Bluzzi committed Apr 23, 2023
1 parent b0de466 commit f41cedf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const options: CookieOptions = {
const serializedCookie = serializeCookie(cookie, options);

console.log(serializedCookie);
// "myCookie=myValue; Max-Age=3600; Path=/; Secure; SameSite=Strict"
// Output: "myCookie=myValue; Max-Age=3600; Path=/; Secure; SameSite=Strict"
```

### `parseCookies(cookies: string): Cookie[]`
Expand All @@ -53,7 +53,7 @@ const cookies = "myCookie1=myValue1; myCookie2=myValue2";
const parsedCookies = parseCookies(cookies);

console.log(parsedCookies);
// [{ name: "myCookie1", value: "myValue1" }, { name: "myCookie2", value: "myValue2" }]
// Output: [{ name: "myCookie1", value: "myValue1" }, { name: "myCookie2", value: "myValue2" }]
```

## License
Expand Down

0 comments on commit f41cedf

Please sign in to comment.