Electron Getpath

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

// or

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