Skip to content

Commit

Permalink
Fixed readme headings
Browse files Browse the repository at this point in the history
  • Loading branch information
stuyam committed May 8, 2017
1 parent 0293688 commit 0c58644
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#Simple Cookie
# Simple Cookie
[![Powered by Dockwa](https://raw.githubusercontent.com/dockwa/openpixel/dockwa/by-dockwa.png)](https://engineering.dockwa.com/)

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

###Set Cookie
### Set Cookie
```javascript
Cookie.set('name', 'value')
```
Expand All @@ -20,26 +20,26 @@ The path can also be optionally set as follows.
Cookie.set('name', 'value', 60*24*365, document.location)
```

###Get Cookie
### Get Cookie
```javascript
Cookie.get('name')
```

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

###Remove Cookie
### Remove Cookie
```javascript
Cookie.remove('name')
```

Removes the cookie with that name if it is set.

###Exists Cookie
### Exists Cookie
```javascript
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
And it's as simple at that! :) Enjoy

0 comments on commit 0c58644

Please sign in to comment.