expired-storage
JSON →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.
Traffic · last 30 days stale · no recent hits
total hits 19
actors 4 distinct systems
last hit 17d ago AhrefsBot
top countries 🇸🇬 Singapore · 🇺🇸 United States · VN · 🇮🇹 Italy · 🇨🇦 Canada
Resources
packageexpired-storage ↗