Electron getPath

const { app } = require('electron')
app.getPath('userData')

// or

const { remote } = require('electron')
remote.app.getPath('userData')
Krushn