:cookie: Cookie management library in JavaScript from Udemy course
cookie management library in JavaScript
npm install cookie-manager
# or
yarn add cookie-manager
import cookieManager from 'cookie-manager-js';
Getting a cookie with given cookie name
cookieManager.get(name);
Returns all of the existing cookies
cookieManager.find();
Creating a new cookie
cookieManager.create(name, value, expires, domain, path, secure);
Updating an existing cookie
cookieManager.update(name, value, expires, domain, path, secure);
Deleting a cookie with given cookie name
cookieManager.remove(name);
Clears all of the existing cookies
cookieManager.clear();
Licensed under the MIT License.