1.0.0 • Published 10 months ago

@onesy/cookie v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Getting started

Add

yarn add @onesy/cookie

Use

  import OnesyCookie from '@onesy/cookie';

  const onesyCookie = new OnesyCookie();

  // Add
  onesyCookie.add('a', 4);

  // Has
  onesyCookie.has('a');

  // true

  // Get
  onesyCookie.get('a');

  // 4

  // Remove
  onesyCookie.remove('a');

  onesyCookie.get('a');

  // undefined

Dev

Install

yarn

Test

yarn test

Prod

Build

yarn build