@codehivetx/ernst

1.0.3 • Public • Published

Ernst - terminal server in Node.js

What is this

Ernst is something like getty but for Node.js.

It spends its time in the following loop:

  1. Open a serial port
  2. Display a welcome banner
  3. If the user requests connection, sublaunch some process
  4. Forward text from that process to and from the port
  5. Clean up and loop back to step 2

Why?

This allows you to set up some kind of terminal, whether physical or virtual, and offer a process over it.

How to use

  1. Create a config.json file (as below)
  2. npm i
  3. node index.js

Config

create config.json

{
    "portPath": "/dev/tty.whatever",
    "saltCmd": "/usr/bin/ssh",
    "saltArgs": [
        ""
    ],
    "baudRate": 19200
}

License

Copyright (c) 2023-2024 Code Hive Tx, LLC

SPDX-License-Identifier: Apache-2.0

Licensed under Apache-2.0

Author

Steven R. Loomis @srl295 of @codehivetx

Readme

Keywords

none

Package Sidebar

Install

npm i @codehivetx/ernst

Weekly Downloads

1

Version

1.0.3

License

Apache-2.0

Unpacked Size

16.5 kB

Total Files

5

Last publish

Collaborators

  • srl295