A short list of hurdles to get Electron working more like Node, and how I'm tackling them.
- using renderer
process.stdin
with Buffer seems difficult/impossible- alternative: send buffered stdin as a string to the renderer
- renderer
process.argv
needs 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.onerror
in 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