# stdout-collector

> Route stdout between computers and terminals

Latest version **0.1.0** (published 2018-03-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install stdout-collector
pnpm add stdout-collector
yarn add stdout-collector
bun add stdout-collector
```

Provides the commands `stdrecv`, `stdsend`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-03-23 |
| First published | 2018-03-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 8.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Perry Mitchell |
| Maintainers | kiosked-perry |
| Keywords | stdout, route, terminal |

## Links

- npm: https://www.npmjs.com/package/stdout-collector
- Repository: https://github.com/perry-mitchell/stdout-collector
- Homepage: https://github.com/perry-mitchell/stdout-collector#readme
- Issues: https://github.com/perry-mitchell/stdout-collector/issues
- npm.io page: https://npm.io/package/stdout-collector

## Dependencies (7)

- [pad](https://npm.io/package/pad.md) ^2.0.3
- [uuid](https://npm.io/package/uuid.md) ^3.2.1
- [chalk](https://npm.io/package/chalk.md) ^2.3.2
- [express](https://npm.io/package/express.md) ^4.16.3
- [minimist](https://npm.io/package/minimist.md) ^1.2.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.1.1
- [body-parser](https://npm.io/package/body-parser.md) ^1.18.2

## Alternatives

- [express-promise-router](https://npm.io/package/express-promise-router.md) — 736.1K weekly downloads
- [next-usequerystate](https://npm.io/package/next-usequerystate.md) — 29.8K weekly downloads
- [@bitkyc08/opencodex](https://npm.io/package/@bitkyc08/opencodex.md) — 4.6K weekly downloads
- [lynkr](https://npm.io/package/lynkr.md) — 575 weekly downloads
- [baremetal.js](https://npm.io/package/baremetal.js.md) — 42 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2018-03-23

## README

# stdout collector
> Collect and route stdout between computers and terminals

[![Build Status](https://travis-ci.org/perry-mitchell/stdout-collector.svg?branch=master)](https://travis-ci.org/perry-mitchell/stdout-collector)

## About
Having applications running in many terminals and machines can be troublesome to monitor. Setting up log sending/fetching may be a bit too tedious a task for some projects. `stdout-collector` provides an intermediate solution by allowing for easy redirection of application `stdout` streams to one destination.

Using this application it is possible to route the `stdout` from many different applications on different machines to one terminal on another. This library provides 2 commands:

 * `stdsend` - Send `stdout` to a destination receiver
 * `stdrecv` - Receive `stdout` from another machine (or several machines)

## Usage
To set up a receiver:

```shell
stdrecv
```

This executes the receiving server application which listens for clients.

To set up a sending utility:

```shell
./some-program-with-output.sh | stdsend 192.168.0.1 --name="MyApp"
```

### stdrecv arguments
The follow arguments can be provided to `stdrecv`:

| Argument                | Required | Description                                      |
|-------------------------|----------|--------------------------------------------------|
| `--port=`               | No       | Override the listen port. Default: `8888`.       |

### stdsend arguments
The follow arguments can be provided to `stdsend`:

| Argument                | Required | Description                                      |
|-------------------------|----------|--------------------------------------------------|
| (address/addresses)     | Yes      | Destination addresses, including port if not the default. Multiple addresses separated by a space. |
| `--name=`               | No       | Set the client name. For display, max 5 characters (trimmed otherwise). |

#### Destination addresses
You can specify 1 or more destination addresses. All of the following are valid:

 * `192.168.0.1` (port: `8888`)
 * `localhost:3333`
 * `http://server.com` (port: `8888`)

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