Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
super simple remote repl to interact with node processes
JavaScript
branch: master

0.1.2

latest commit 4848072935
@tblobaum authored
Failed to load latest commit information.
example implements readline
README.md readme typo
index.js implements readline
package.json 0.1.2
screenshot.png screenshot

README.md

remote-repl

super simple remote repl for node processes

Installation

npm install remote-repl

Examples

The easiest way is to use stdin to inject a repl into the global context

require('remote-repl')('stdin')

tcp

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

unix sockets

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

Todo

Add more commands to switch repl contexts.

License

MIT

Something went wrong with that request. Please try again.