call node.js file electron

JavaScript
myButton.onclick = function() {
  require('./getuser');
};

Source

Also in JavaScript: