O'Reilly logo
  • Young Smith thinks this is interesting:

const remote = require('remote'); const dialog = remote.require('dialog');

From

Cover of Developing an Electron Edge

Note

should be const dialog = require("electron").remote.dialog