Skip to main content

localstorage-slim

Homepage

https://github.com/digitalfortress-tech/localstorage-slim

What is it?

A lightweight library for making browser storage a little bit less tedious.

Why did we choose it?

It's extremely small and low in size, doesn't have any particular requirements, and does the job without any fuss.

What do we use it for?

Simplifying code where we want to store data temporarily in the user's local browser storage, e.g. by attaching expiry times to particular values that should be refreshed eventually.

Examples of this include caching the user's website theme, notifications (for a short period) and navigation settings.