1.0.3 • Published 2 years ago

localstorage-with-expire v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago
install localstorage-with-expire
import { get, set } from 'localstorage-with-expire'
set('your-record-name', {}, {
    day: 1,
    minute: 1
})

get('your-record-name')

set: set locatstorage data with expire date

get: -get the data from localstorage -remove the data and return null when expire date is out