mazipan / nuxt-storage

🛢 Utilities for easy read and write browser's storage in Nuxt.js project
MIT License
126 stars 8 forks source link

Update the Documentation to Include How to Remove a Specific Item from the Local Storage #231

Closed placideirandora closed 3 years ago

placideirandora commented 3 years ago

I recently used the package by referring to the documentation and was able to set and get a local storage item successfully. Unfortunately, when I tried to remove the item, I used the clear method because It was the only way to remove an item from the local storage due to the current documentation. The clear method removed every item from the storage while I was targeting a specific item.

So, I had to go through the closed issues to find out whether somebody else faced the same issue and fortunately found out that the undocumented method removeItem is the one that removes a specific item from the local storage.

Finally, I would suggest that you document the removeItem as well so that It will be easier for other developers to easily use the package when It comes to remove a specific item from the local storage.

Thank you!