Dietmar Gapp
Feb 23, 2017 · 1 min read

hi, I am lost in the npm electron universe…

I tried your idea in the index.js, but theres no way to get fs or setup the ipcR.

const electron = window.require(‘electron’);
const fs = electron.remote.require(‘fs’);
var loadApts = JSON.parse(fs.readFileSync(dataLocation));
var ipcR =electron.ipcRenderer;

I think your setup is a good starting point, but I need the electron API.

    Dietmar Gapp

    Written by

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade