1.0.7 • Published 4 years ago

@franca/basic-cookie v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
4 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

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.2

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago