A short list of hurdles to get Electron working more like Node, and how I'm tackling them.
- using renderer
process.stdinwith Buffer seems difficult/impossible- alternative: send buffered stdin as a string to the renderer
- renderer
process.argvneeds to berequire('remote').process.argv- should be patched in preload script to ensure your Node dependencies work correctly
- syntax errors in
<script src="index.js">do not print to terminalwindow.onerrorin a preload script can be used to detect these problems- only provides file, line number and a minimal error message
- stderr gets cluttered with Chromium logs