1.0.11 • Published 8 months ago
zymber-react-utils v1.0.11
zymber-react-utils
This library provides utilities for handling cookies, and it will soon be extended to include app version and IndexedDB storage features.
Table of Contents
Introduction
zymber-react-utils
is a utility library for managing cookies efficiently in JavaScript and TypeScript projects. The library plans to extend its capabilities to handle app versions and provide IndexedDB storage solutions.
Installation
npm install zymber-react-utils
Features
Cookie Handling
- Set a cookie with various options
- Retrieve a cookie value by key
- Remove a cookie by key
- Remove multiple cookies by keys array
App Version (Coming Soon)
- Get the current app version
IndexedDB Storage (Coming Soon)
- CRUD operations with IndexedDB
Usage
Here is a quick example demonstrating how you can use this library for cookie operations:
import cookie from 'zymber-react-utils';
// Setting a cookie
cookie.setCookie('your_key', 'your_value');
// Retrieving a cookie
const value = cookie.getCookie('your_key'); // Output: 'your_value'
// Removing a cookie
cookie.removeCookie('your_key');
App Version Functions (Coming Soon)
(Description here)
IndexedDB Functions (Coming Soon)
(Description here)