Mini JavaScript client/server remote shell execution
Clone and run the server
git clone https://github.com/RyLeeHarrison/mini-remote-shell-execution
cd mini-remote-shell-execution-master
yarn install # or npm install
node server.js # exposes port 1338
you can connect with telnet as well as nc, your choice
nc localhost 1338
or telnet
telnet localhost 1338
I used the package "node-pty" to so it could be used with something like xterm.js
"node-pty
supports Linux, macOS and Windows. Windows support is possible by utilizing the winpty library."
See the node-pty package for more information