hcookie-manager is a versatile cookie management library that allows you to handle cookies efficiently across various programming languages.
You can install hcookie-manager via npm:
npm install hcookie-managerconst { CookieManager } = require('hcookie-manager');
const cookieManager = new CookieManager();
cookieManager.setCookie('myCookie', 'cookieValue');
console.log(cookieManager.getCookie('myCookie')); // Output: cookieValueimport { CookieManager } from 'hcookie-manager';
const cookieManager = new CookieManager();
cookieManager.setCookie('myCookie', 'cookieValue');
console.log(cookieManager.getCookie('myCookie')); // Output: cookieValueInitializes an instance of CookieManager.
Processes the provided string of cookies and stores them in the cookies object.
Returns a string representation of all cookies ready for sending in HTTP headers.
Sets a cookie with the specified name and value.
Returns the value of the cookie with the specified name, or undefined if not found.
hcookie-manager is designed to work seamlessly across the following programming languages:
- JavaScript
- TypeScript
- Python
- Java
- C#
- Ruby
- PHP
- Swift
Feel free to integrate hcookie-manager into your projects in any of these languages!
This project is licensed under the MIT License - see the LICENSE file for details.