1.0.7 • Published 3 years ago

@franca/basic-cookie v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Basic-cookie

Tiny package to create, check and erase cookie in the browser. :cookie:

Installation

yarn add @franca/basic-cookie

Available methods

getCookie

getCookie(name:String): <String || null>

setCookie

eraseCookie(name:String)

eraseCookie

setCookie(name: String, value: String, maxAge: number)

:warning: If cookie already exists, it is erased before creation

Usage

import basicCookie from '@franca/basic-cookie';

basicCookie.setCookie('myCookie', 'isYummy', 2000);

Publish

$ yarn lint
$ yarn format
$ yarn build

$ yarn login
$ yarn publish
1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.2

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago