{"library":"expired-storage","type":"library","category":null,"description":"Micro JavaScript library (v1.0.2, last updated 2018) that wraps localStorage or sessionStorage to provide expiration times on stored items. Items are stored with an additional key tracking expiration; fetching expired items removes them and returns null. Offers basic set/get with TTL in seconds, plus extended methods like getTimeLeft, isExpired, peek, updateExpiration, clearExpired, and JSON helpers. Accepts custom storage backends that implement localStorage API. No dependencies, minimal footprint. Not actively maintained; use as-is for legacy projects.","language":"javascript","status":"maintenance","version":"1.0.2","tags":["javascript","localStorage","sessionStorage","storage","expiration","expired","temporary"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install expired-storage","imports":["import ExpiredStorage from 'expired-storage'","const ExpiredStorage = require('expired-storage').default;","var storage = new ExpiredStorage();"]},{"cmd":"yarn add expired-storage","imports":[]},{"cmd":"pnpm add expired-storage","imports":[]}],"homepage":"https://github.com/RonenNess/ExpiredStorage/","github":"https://github.com/RonenNess/ExpiredStorage","docs":null,"changelog":null,"pypi":null,"npm":"expired-storage","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}