Skip to content

amaui-org/amaui-cookie

Repository files navigation



amaui logo

amaui Cookie

Cookie


MIT license     Production ready     UMD 4.6kb gzipped     100% test cov     Browser

Very simple code     Modern code     Junior friendly     Typescript     Made with 💛


Getting started

Add

yarn add @amaui/cookie

Use

  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

Dev

Install

yarn

Test

yarn test

Prod

Build

yarn build