Skip to content
 
 

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

CooQuery 3.2

Create, edit and manage cookies with JavaScript.

Usage

  1. Set a new cookie:

     cookie.set("my_cookie" , "hello");
     cookie.set("my_second_cookie", "hi", {
         duration : 2 // days
     });
    

    Options are:

     {
         duration : 1, // in days
         path : '',
         domain : '',
         secure : false
     }
    
  2. Read the value of a cookie:

     cookie.get("my_cookie"); // returns "hello"
     cookie.get("noecziste"); // returns undefined
    
  3. Delete a cookie:

     cookie.del("my_cookie");
    

That is it. :)

Running tests

First, you need node.js and npm installed. Then...

git clone git://github.com/lenon/CooQuery.git
cd CooQuery
npm install jasmine-node -g
jasmine-node spec/

About

Create, edit and manage cookies with JavaScript

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages