🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

remote-repl

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remote-repl

super simple remote repl for node processes

latest
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 20 Jun 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts