Cookie
Very simple code Modern code Junior friendly Typescript Made with 💛
yarn add @amaui/cookie
import AmauiCookie from '@amaui/cookie';
const amauiCookie = new AmauiCookie();
// Add
amauiCookie.add('a', 4);
// Has
amauiCookie.has('a');
// true
// Get
amauiCookie.get('a');
// 4
// Remove
amauiCookie.remove('a');
amauiCookie.get('a');
// undefined
Install
yarn
Test
yarn test
Build
yarn build