All Projects → firstandthird → Cookie Monster

firstandthird / Cookie Monster

Licence: mit
Javascript Cookie Library

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Cookie Monster

Medlaunch
A Windows (.NET) Front-End for the Mednafen Emulator
Stars: ✭ 37 (-50%)
Mutual labels:  front-end
Portfolio
Front-end developer portfolio website
Stars: ✭ 53 (-28.38%)
Mutual labels:  front-end
Entityframework Reverse Poco Generator Ui
A simple UI to allow you to easily select which tables you want the EntityFramework Reverse POCO Code First Generator to use.
Stars: ✭ 69 (-6.76%)
Mutual labels:  front-end
Spionio
Lightweight focus group management platform that can capture and replay user interaction on your site and improve the UX in everything you build
Stars: ✭ 40 (-45.95%)
Mutual labels:  front-end
Dawn
🌅 Dawn is a lightweight task management and build tool for front-end and nodejs.
Stars: ✭ 1,057 (+1328.38%)
Mutual labels:  front-end
Bootstrap Dark
The Definitive Guide to Dark Mode and Bootstrap 4 - A proof of concept
Stars: ✭ 54 (-27.03%)
Mutual labels:  front-end
Front End Plugins
🐋 Web 前端常用插件
Stars: ✭ 949 (+1182.43%)
Mutual labels:  front-end
F2edocs.com
📘 前端开发-学习资料库 (开源书籍,规范,博客社区,面试题)。前端开发者,是这个互联网时代不可缺少的角色,我们彼此相爱,我们共同学习。
Stars: ✭ 74 (+0%)
Mutual labels:  front-end
Vrac
Declarative html template library from the future. <wip>
Stars: ✭ 52 (-29.73%)
Mutual labels:  front-end
Horsey
🐴 Progressive and customizable autocomplete component
Stars: ✭ 1,146 (+1448.65%)
Mutual labels:  front-end
Sublime packages
✍️ SublimeText Pageages Backups For Front-End Developer
Stars: ✭ 41 (-44.59%)
Mutual labels:  front-end
Webthings
A collection of all things web, because my memory sucks and so does yours.
Stars: ✭ 50 (-32.43%)
Mutual labels:  front-end
Dev Practice
Practice your skills with these ideas.
Stars: ✭ 1,127 (+1422.97%)
Mutual labels:  front-end
Eks
A series of Vue components.
Stars: ✭ 39 (-47.3%)
Mutual labels:  front-end
React Easy Params
🔗 Auto synchronize your state with the URL and LocalStorage.
Stars: ✭ 73 (-1.35%)
Mutual labels:  front-end
Alumna
[Alpha release of v3] Development platform for humans / Plataforma de desenvolvimento para humanos
Stars: ✭ 32 (-56.76%)
Mutual labels:  front-end
Front End Roadmap
Tell you how to learn front end development ~
Stars: ✭ 1,070 (+1345.95%)
Mutual labels:  front-end
Single Spa
The router for easy microfrontends
Stars: ✭ 10,395 (+13947.3%)
Mutual labels:  front-end
Fbi
Node.js workflow tool
Stars: ✭ 74 (+0%)
Mutual labels:  front-end
Fe
前端学习指南
Stars: ✭ 66 (-10.81%)
Mutual labels:  front-end

Cookie Monster

Build Status npm

Cookie manager

Installation

npm install @firstandthird/cookie-monster

Usage

import CookieMonster from '@firstandthird/cookie-monster';

const name = 'cookiename'; // required
const value = 'somevalue'; // required - may also be an object
const expires = 10; // optional - Days cookie is valid
const path = '/test'; // optional - defaults to /
const domain = 'blog.example.com'; // optional
const isSecure = false; // optional - sets secure flag
const sameSite = 'Strict'; // optional - defaults to 'Strict' - Valid values: 'None', 'Lax', 'Strict'

// Set cookie
CookieMonster.set(name, value, expires, path, domain, isSecure, sameSite);

// Get cookie
CookieMonster.get(name);

// Remove cookie

CookieMonster.remove(name);

// Increment a counter cookie
CookieMonster.increment(name, expires);

// Decrement a counter cookie

CookieMonster.decrement(name, expires);

Methods can also be imported as needed:

import { get, remove } from '@firstandthird/cookie-monster';

get(name);

remove(name);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].