function isNode() {
  return (
      typeof process === 'object' &&
      typeof process.versions === 'object' &&
      typeof process.versions.node !== 'undefined' &&
      process.type !== 'renderer');
}
Is the current environment Node.js?

This logic is specific to Electron, because it checks
`process.type`.