Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>CookieJsNew to Visual Studio Code? Get it now.
CookieJs

CookieJs

Christopher Pateman

|
4,686 installs
| (0) | Free
JavaScript Cookie Object and Functions to Create, Edit, Get and Check Cookies.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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.

  • CookieJS Class Tests
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft