How to read the files generated locally by an Electron app

Generally, in macOS, Electron app files are stored in:

shell
/Users/your_name/Library/Application Support/your_app

If you want to get the path of the files generated by an Electron app:

jsx
const dataPath = app.getPath('userData');

Hi, I'm Erik, an engineer from Barcelona. If you like the post or have any comments, say hi.