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.
- Install Visual Studio Code 0.10.1 or higher
- Launch Code
- From the command palette Ctrl-Shift-P (Windows, Linux) or Cmd-Shift-P (OSX)
- Select Install Extension
- Type CookieJs
- Choose the extension
- Reload Visual Studio Code
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
Please see all updates below
Initial release of ...
Information Update
Updated to complie with the Airbnb Style Guide using eslint.
Updated to add ES6 Class.
Addition of delcookie, delallcookie and gencookie separately and in the class.
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.