Electron renderer node CLI.
Execute script and run REPL in electron renderer (the Chrome + Node.js environment).
Installation
npm i electron-renderer-node -g
Usage
# Execute a script with in renderer
ern ./sample.js
# Or starts a REPL (Chrome devtool)
ern
WHY I WROTE(USE) IT
- Logs in command line are hard to read.
- There are too many steps with
node --inspect-brk
. - I want to use
Ctrl+R
to re-run my code. - I need the DOM API sometimes.