HTML5 LocalStorage is an API allowing to persist a specific website data on the user end. It is very limited and allows only String-based data with key → value, but the key thing is that it is everywhere.
Electron.js made an actual implementation of LocalStorage persistence based on application build, which means that whenever you have an application compiled and packaged, the user will be able to keep some configuration or any small amounts of data inside that storage.
Alternatively, you can use SQLite or NeDB or any other Node.js based embedded databases, BUT they are actually too heavy to keep just plain user configurations.
#electron #nodejs #javascript
Download
0 formats
No download links available.
Electron.js LocalStorage magic or how to persist basic desktop app configurations or user data | NatokHD