npm

@amaui/cookie
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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

Package Sidebar

Install

npm i @amaui/cookie

Weekly Downloads

17

Version

1.0.4

License

MIT

Unpacked Size

48.9 kB

Total Files

11

Last publish

Collaborators

  • lazareric