electron-store
electron-log
electron-store | electron-log | |
---|---|---|
7 | 1 | |
4,431 | 1,247 | |
- | - | |
4.3 | 7.8 | |
about 2 months ago | 29 days ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
electron-store
-
Best offline&local database to use with electron?
Not quite a database, but I use electron-store for persistent storage. It has a super simple API, and it stores data in a config.json file thatβs mostly hidden from the user unless they know where to look.
-
Something like mongoose in electron?
The electron-store package works well with simple data.
-
What is the proper way to permanently store data in Electron in 2023?
I've seen electron-store, but it seems to be a volatile store. Each time I open the app, it seems I must create a new Store(). The doc explains clearly how to perform crud operation in a new store, but not how to retrieve existing data when re-opening the app 10 days later. If the lib can actually do it, how to do so?
-
Question about data persistence within electron app
With Electron, you have disk access via Node.js (fs.writeFile, etc), so you can save user preferences to the user's hard drive. See https://github.com/sindresorhus/electron-store for a library that makes it super easy and provides you with some nice conventions for working with the file system from an Electron app.
-
How to save user preferences?
Use electron-store
-
Using Typescript with electron-store
https://github.com/sindresorhus/electron-store/issues/49 Links to internal test that shows how to pass types to electron-store
-
[Electron][TypeScript] output/input files
GitHub - sindresorhus/electron-store: Simple data persistence for your Electron app or module - Save and load user preferences, app state, cache, etc
electron-log
-
[Electron][TypeScript] output/input files
GitHub - megahertz/electron-log: Just a simple logging module for your Electron application
What are some alternatives?
puppeteer-extra - π― Teach puppeteer new tricks through plugins.
loglevel - :ledger: Minimal lightweight logging for JavaScript, adding reliable log level methods to wrap any available console.log methods
electronmon - π₯ run, watch, and restart electron apps using magic
ptkdev-logger - π¦ Beautiful Logger for Node.js: the best alternative to the console.log statement
decap-cms - A Git-based CMS for Static Site Generators
signale - Highly configurable logging utility
electron-settings - π A simple persistent user settings framework for Electron.
consola - π¨ Elegant Console Logger for Node.js and Browser
conf - Simple config handling for your app or module
storyboard - End-to-end, hierarchical, real-time, colorful logs and stories
cnnn666v2-bot - Config files for my GitHub profile.
electron-to-nwjs - Build an Electron app as a NW.js app