All Projects → dockwa → simple-cookie

dockwa / simple-cookie

Licence: MIT License
A very simple, super lightweight javascript cookie class that you will understand.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to simple-cookie

macaroons-rs
Macaroons: bearer credentials with caveats for distributed authorization
Stars: ✭ 62 (+264.71%)
Mutual labels:  cookie
PolishCookieConsent
Polish Cookie Consent is an extension, which automatically accepts privacy policy/GDPR on websites.
Stars: ✭ 17 (+0%)
Mutual labels:  cookie
contao-cookiebar
Display the information about cookies on your Contao website
Stars: ✭ 27 (+58.82%)
Mutual labels:  cookie
beautifulscraper
Python web-scraping library that wraps urllib2 and BeautifulSoup
Stars: ✭ 40 (+135.29%)
Mutual labels:  cookie
wily
Build Node.js APIs from the command line (Dead Project 😵)
Stars: ✭ 14 (-17.65%)
Mutual labels:  cookie
laravel-localizer
Automatically detect and set an app locale that matches your visitor's preference.
Stars: ✭ 34 (+100%)
Mutual labels:  cookie
elm-storage
Unified interface for accessing and modifying LocalStorage, SessionStorage and Cookies
Stars: ✭ 13 (-23.53%)
Mutual labels:  cookie
next-fauna-auth
Implemented cookie-based user authentication in a Next.js, FaunaDB and GraphQL app
Stars: ✭ 29 (+70.59%)
Mutual labels:  cookie
cookiet
A small, simple JavaScript cookies library.
Stars: ✭ 13 (-23.53%)
Mutual labels:  cookie
yii2-cookiemonster
Yii extension to manage cookie warning
Stars: ✭ 16 (-5.88%)
Mutual labels:  cookie
phaser-super-storage
A cross platform storage plugin for Phaser
Stars: ✭ 49 (+188.24%)
Mutual labels:  cookie
concorde.js
A sexy pinnacle of engineering that’s nonetheless incredibly inefficient and expensive and goes out of business because it can’t find enough use. It also provides some tools to deal with the browser.
Stars: ✭ 17 (+0%)
Mutual labels:  cookie
lookie
Store your data in localStorage with optional expiration time. Almost like a cookie.
Stars: ✭ 78 (+358.82%)
Mutual labels:  cookie
cookies
Manage your cookies on client and server side (Angular Universal)
Stars: ✭ 40 (+135.29%)
Mutual labels:  cookie
nginx cookie flag module
Module for Nginx which allows to set the flags "HttpOnly", "secure" and "SameSite" for cookies.
Stars: ✭ 101 (+494.12%)
Mutual labels:  cookie
F5-BIGIP-Decoder
Detecting and decoding BIGIP cookies in bash
Stars: ✭ 28 (+64.71%)
Mutual labels:  cookie
wbp4j
Simple Java Api for 微博图床,使用简单的api即可完成上传图片
Stars: ✭ 48 (+182.35%)
Mutual labels:  cookie
summary1
个人总结 持续更新 欢迎提出各种issues
Stars: ✭ 13 (-23.53%)
Mutual labels:  cookie
micell
A collection of functions for front-end development
Stars: ✭ 16 (-5.88%)
Mutual labels:  cookie
http
Aplus Framework HTTP Library
Stars: ✭ 113 (+564.71%)
Mutual labels:  cookie

Simple Cookie

npm npm

Powered by Dockwa

This is a very simple, super lightweight javascript cookie class to be used however you like. It has 4 simple methods...

Set Cookie

Cookie.set('name', 'value')

You can also use it set the expiration time, by default it never expire. The expiration is in minutes so laying out the multiplication for a year would be as follows.

Cookie.set('name', 'value', 60*24*365)

The path can also be optionally set as follows.

Cookie.set('name', 'value', 60*24*365, document.location)

Get Cookie

Cookie.get('name')

Returns the value of the cookie if it exits, 'undefined' if it does not exists.

Remove Cookie

Cookie.remove('name')

Removes the cookie with that name if it is set.

Exists Cookie

Cookie.exists('name')

Returns a TRUE or FALSE value is the cookie is currently set on the client.


And it's as simple at that! :) Enjoy

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].