awesome-storage
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Awesome-Storage

Storage utility to work with Local Storage and Cookies

Installation

$ npm install awesome-storage
import { localStorage, cookieStorage } from "awesome-storage";

Using the lib

Local Storage Utility
import { localStorage } from "awesome-storage";
 
localStorage.getLocalStorageData() - Get the data from the local storage for corresponding key
localStorage.setLocalStorageData() - Set the data in the local storage with key and value respectively
localStorage.clearLocalStorageData() - Clear all the local storage data
Cookie Storage Utility
import { cookieStorage } from "awesome-storage";
 
cookieStorage.getCookie() - Get cookie data by name
cookieStorage.clearCookieStorageData() - Clear all the cookie storage data 

Package Sidebar

Install

npm i awesome-storage

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

9.32 kB

Total Files

10

Last publish

Collaborators

  • dlucidone