super simple remote repl for node processes
npm install remote-repl
The easiest way is to use stdin to inject a repl into the global context
require('remote-repl')('stdin')
You can also use tcp to start a repl with any node process. In your application pass a few options where the repl will listen for connections.
require('remote-repl')('tcp', { port: 3021, secret: 'beepboop' })
Then you can use netcat
to connect with nc localhost 3021
require('remote-repl')('unix socket', { path: '/tmp/node-repl-sock', secret: 'beepboop' })
And then use socat
to connect with socat /tmp/node-repl-sock stdin
Add more commands to switch repl contexts.
MIT