# replr

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

Latest version **1.0.6** (published 2015-09-02) · 0 weekly downloads

## Install

```sh
npm install replr
pnpm add replr
yarn add replr
bun add replr
```

Provides the command `replr`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2015-09-02 |
| First published | 2013-12-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Rob Skillington |
| Maintainers | robskillington, raynos |

## Links

- npm: https://www.npmjs.com/package/replr
- Repository: https://github.com/robskillington/replr
- Homepage: https://github.com/robskillington/replr#readme
- Issues: https://github.com/robskillington/replr/issues
- npm.io page: https://npm.io/package/replr

## Dependencies (9)

- [doc](https://npm.io/package/doc.md) 0.0.3
- [async](https://npm.io/package/async.md) 0.2.9
- [chalk](https://npm.io/package/chalk.md) ^1.0.0
- [xtend](https://npm.io/package/xtend.md) ^4.0.0
- [yargs](https://npm.io/package/yargs.md) ^3.5.4
- [keypress](https://npm.io/package/keypress.md) ^0.2.1
- [terminal](https://npm.io/package/terminal.md) 0.1.4
- [portscanner](https://npm.io/package/portscanner.md) ^1.0.0
- [memorystream](https://npm.io/package/memorystream.md) 0.2.0

## Recent versions

- 1.0.6 (latest) — 2015-09-02
- 1.0.5 — 2015-06-27
- 1.0.4 — 2015-04-06
- 1.0.3 — 2015-03-31
- 1.0.2 — 2015-03-17
- 1.0.1 — 2015-03-16
- 1.0.0 — 2015-03-16
- 0.2.16 — 2015-03-08
- 0.2.14 — 2015-03-06
- 0.2.13 — 2015-02-13
- 0.2.12 — 2015-01-07
- 0.2.11 — 2015-01-07
- 0.2.10 — 2015-01-07
- 0.2.9 — 2015-01-07
- 0.2.8 — 2015-01-07
- … 11 more at https://npm.io/package/replr/versions

## README

# replr

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

### Features

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

### How add replr?

```js
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

---
_Source: https://npm.io/package/replr · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
