Javascript Cookie Library
Switch branches/tags
Nothing to show
Pull request Compare This branch is 29 commits behind firstandthird:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
lib
test
.gitignore
Makefile
README.md
build.json
package.json

README.md

Cookie Monster

A javascript libary to manage cookies

Installation

download monster.js from dist directory.

or

ender build cookie-monster 

Usage

monster.set(name, value, days, path) //days and path are optional
monster.get(name)
monster.remove(name)

Example

//set a cookie named 'cookiename' to '123' for 1 day then remove it
var name = 'cookiename';
var value = '123';
var days = 1;
monster.set(name, value, days);
monster.remove(name);