localstorage-ttl
Advanced tools
Weekly downloads
Readme
JS module to save data to localstorage with time to live. Data will expire after set time.
npm install localstorage-ttl --save
const ls = require('localstorage-ttl');
ls.set(variable, value, [ttl_ms]);
ls.get(variable);
if ttl_ms is not set it will be without expire date and will be there till user deletes or your other js deletes it.
FAQs
JS module to save data to localstorage with time to live. Data will expire after set time.
The npm package localstorage-ttl receives a total of 495 weekly downloads. As such, localstorage-ttl popularity was classified as not popular.
We found that localstorage-ttl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.