cookie-helper
v1.0.1
Published
Tiny helper to work with Cookies.
Downloads
5
Maintainers
Readme
CookieHelper
Usage
Install via NPM:
npm install cookie-helper --save
Import the CookieHelper:
import CookieHelper from 'cookie-helper';
Create cookie
CookieHelper.create('cookie-name', 'cookie value', 365);
Read cookie
let cookieValue = CookieHelper.read('cookie-name';
Erase cookie
CookieHelper.erase('cookie-name';