Socket
Socket
Sign inDemoInstall

replr

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

replr

REPL remote access for Node apps/services with cluster and worker selection support


Version published
Weekly downloads
27
decreased by-64.47%
Maintainers
2
Weekly downloads
 
Created
Source

replr

REPL remote access for Node apps/services with cluster and worker selection support.

Features

  • Remote access over replr client with HTTP upgrade, netcat or telnet on a TCP port
  • Use as console to spin up a rails console clone for your stack in minutes
  • Use cmds() to list all exported methods and corresponding documentation
  • Use vars() to list all exported vars
  • Use workers() to describe all workers of a cluster node app
  • Use select(workerId) to switch REPL context to a worker
  • Supports REPL over unix domain socket by specifying port as a file path

How add replr?

replr.create({
    name: 'MyApp console',
    prompt: 'myApp> ',
    port: 2323,
    useColors: true,
    useGlobal: true,
    ignoreUndefined: true,
    exports: function replrExports() {
        return {
            increment: function increment() {
                return statefulThing.counter++;
            },
            getStatefulThing: function getStatefulThing() {
                return statefulThing;
            }
        };
    }
});

For an example of using replr as a console see the examples/console.js example.

Installation

npm install replr

Tests

npm test

MIT Licensed

FAQs

Package last updated on 02 Sep 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc