Skip to content

PureRandom/CookieJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Cookie Maker!

This snippet creates the functions for cookies in JavaScript. This has all the required functions for using cookies broken down into individual methods. You can also use the snippet to create a whole JavaScript ES6 Class or Object with all functions in it.

Installation

  1. Install Visual Studio Code 0.10.1 or higher
  2. Launch Code
  3. From the command palette Ctrl-Shift-P (Windows, Linux) or Cmd-Shift-P (OSX)
  4. Select Install Extension
  5. Type CookieJs
  6. Choose the extension
  7. Reload Visual Studio Code

How to use?

Start typing one of the following commands and then tap enter or tab.

  • 'cookieobj' for full CookieJs Object (not maintained since 1.3.6)
  • 'cookieclass' for full CookieJs Class
  • 'chkcookie' for Check Cookie Function
  • 'getcookie' for Get Cookie Function
  • 'setcookie' for Set Cookie Function
  • 'delcookie' for Delete Cookie Function
  • 'delallcookie' for Delete All Cookie Function
  • 'gencookie' for ES6 Generator to loop all Cookies

Release Notes

Please see all updates below

1.0.0

Initial release of ...

1.2.0

Information Update

1.3.0

Updated to complie with the Airbnb Style Guide using eslint.

1.3.6

Updated to add ES6 Class.

1.4.0

Addition of delcookie, delallcookie and gencookie separately and in the class.

Testing

Testing is done using QUnit. Each function is broken down to test its full functionality. All bugs found, please raise a bug on the Git Hub Issues.

Releases

No releases published

Packages

No packages published