This is a snippet for Visual Studio Code and my first attempt. This is also why it is so simple.
This is where you can download the snippet for VS Code > https://marketplace.visualstudio.com/items?itemName=cpateman.cookiejs
You can also see the coding created for the snippet, which was started in ES5 as an object, then progressed to ES6. This is held on my GitHub > https://github.com/PureRandom/CookieJS
From here you can see the results of the Unit test and what kind of tests that were run. > https://purerandom.github.io/CookieJS/CookieJSTest/Tests/CookieClassTest.html