@44north/cookies 中文文档教程
@44north/cookies
帮助管理应用程序中 cookie 的模块
Install
npm install @44north/cookies
或
yarn add @44north/cookies
Usage
import { Cookies } from "@44north/cookies";
const cookies = new Cookies({
sameSite: "Strict"
});
cookies.setCookie("foo", "bar");
console.log(cookies.getCookie("foo")); // -> bar
@44north/cookies
A Module to aid in managing cookies in your applications
Install
npm install @44north/cookies
or
yarn add @44north/cookies
Usage
import { Cookies } from "@44north/cookies";
const cookies = new Cookies({
sameSite: "Strict"
});
cookies.setCookie("foo", "bar");
console.log(cookies.getCookie("foo")); // -> bar