Miss any of our Open RFC calls?Watch the recordings here! »

@thibka/cookie-manager

1.0.2 • Public • Published

CookieManager

Simple JS cookie manager

Install

ES5

<script src="https://cdn.jsdelivr.net/npm/@thibka/cookie-manager@1.0.2/cookie-manager.es5.min.js"></script>

NPM

npm i @thibka/cookie-manager
import CookieManager from '@thibka/cookie-manager';

Usage

CookieManager.setCookie('myCookie', 'Hello.');
 
// Optionnaly you can set a duration in days
CookieManager.setCookie('myCookie', 'Hello.', 12); // will expire in 12 days
 
var myCookie = CookieManager.getCookie('myCookie'); // Returns "Hello."

Install

npm i @thibka/cookie-manager

DownloadsWeekly Downloads

6

Version

1.0.2

License

none

Unpacked Size

2.9 kB

Total Files

4

Last publish

Collaborators

  • avatar