There is no native expiration option but it can be implemented using timestamps.
By pushing data into loca, it is possible to calculate total and available space.
The counter tracks visits and pageviews independently with a simple backend.
To check for an item, get the value of the item by querying localStorage by its key.
You can use the FileReader API to create a data URL and pass this through localStorage.