Skip to content

codehivetx/ernst

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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